Install Java JDK => Click here to download Java JDK
Check MyCompuer properties to figure out you are using 32Bit or 62Bit OS.
Install ADT => Click here to download ADT This includes android dev tools and Eclipse.
After installation, Start Eclipse >select Help > Install New Software > Click on Add in the top-right corner > In the Add Repository dialog that appears, enter “ADT Plugin” for the Name and the following URL for the Location: https://dl-ssl.google.com/android/eclipse/
> Click OK > select the checkbox for Developer Tools > Click Next and proceed to finish. After Installation restart eclipse.
Now Go to Window > Android SDK Manager. Select latest API levels and Install those packages. Will take some time to download.
Install PhoneGap
Goto nodejs webpage and install Noje Js.
Go to PhoneGap web page and download the latest version of the PhoneGap, I will be there in the bottom of the page.
Set up your PATH environment variable
Go to My Computer properties > Advanced tab > Environment Variables button.
> System variables > PATH variable > Edit button.
We need to add the path to Android SDK platform-tools and tools directory. Append the following text into the text box. In my case
E:\adt-bundle-windows-x86-20130917\adt-bundle-windows-x86-20130917\sdk\platform-tools;E:\adt-bundle-windows-x86-20130917\adt-bundle-windows-x86-20130917\sdk\tools;
Save your edit.
Now we need to include %JAVA_HOME%\bin to the PATH as well. In my case it is as follows.
C:\Program Files\Java\jdk1.7.0_40\bin;%JAVA_HOME%\bin;
Before adding JAVA_HOME you can check whether it is there already. GoTo Start > Run> Type java. it is not found then you should Add JAVA_HOME variable to the PATH.
Now we need to include %ANT_HOME%\bin in the Path Variable.
Now to confirm the above steps we should go to Command prompt and type java -version. If it list out the java version details then you can confirm it as working fine.
Create the PhoneGap Application
Open a command prompt: > Navigate to the bin directory deep inside the downloaded PhoneGap folder. In my case it is cd E:\PhoneGap\lib\android\bin
Now use create command to create a new PhoneGap project.
Create command sytax is create<Project-Path><Bundle-Name><Project-Name>
Use the following commad
create E:\AndroidWorkSpace\MyFirstPhoneGapProject com.mycompany.myfirstphonegapapp MyFirstPhoneGapApp and press Enter. Now you can navigate to the location
E:\AndroidWorkSpace\MyFirstPhoneGapProject to find the new PhoneGap project.
Done !!!
Install PhoneGap
Goto nodejs webpage and install Noje Js.
Go to PhoneGap web page and download the latest version of the PhoneGap, I will be there in the bottom of the page.
Set up your PATH environment variable
Go to My Computer properties > Advanced tab > Environment Variables button.
> System variables > PATH variable > Edit button.
We need to add the path to Android SDK platform-tools and tools directory. Append the following text into the text box. In my case
E:\adt-bundle-windows-x86-20130917\adt-bundle-windows-x86-20130917\sdk\platform-tools;E:\adt-bundle-windows-x86-20130917\adt-bundle-windows-x86-20130917\sdk\tools;
Save your edit.
Now we need to include %JAVA_HOME%\bin to the PATH as well. In my case it is as follows.
C:\Program Files\Java\jdk1.7.0_40\bin;%JAVA_HOME%\bin;
Before adding JAVA_HOME you can check whether it is there already. GoTo Start > Run> Type java. it is not found then you should Add JAVA_HOME variable to the PATH.
Now we need to include %ANT_HOME%\bin in the Path Variable.
Now to confirm the above steps we should go to Command prompt and type java -version. If it list out the java version details then you can confirm it as working fine.
Create the PhoneGap Application
Open a command prompt: > Navigate to the bin directory deep inside the downloaded PhoneGap folder. In my case it is cd E:\PhoneGap\lib\android\bin
Now use create command to create a new PhoneGap project.
Create command sytax is create<Project-Path><Bundle-Name><Project-Name>
Use the following commad
create E:\AndroidWorkSpace\MyFirstPhoneGapProject com.mycompany.myfirstphonegapapp MyFirstPhoneGapApp and press Enter. Now you can navigate to the location
E:\AndroidWorkSpace\MyFirstPhoneGapProject to find the new PhoneGap project.
Done !!!
No comments:
Post a Comment