↓ Skip to main content
  1. Posts/

Install Android SDK + Phonegap SDK on Windows

·
Rubén Infante Docio
Author
Rubén Infante Docio
Software engineer

The Script in .bat that comes with PhoneGap to generate a new Phonegap application, seeks to have the following tools installed on the system:

Requirements:
#

NOTE:

  • Download the versions corresponding to our OS, we can see it in Computer->right-click -> properties (Header image)

Steps
#

  1. We download the tools

  2. We unzip them all into a folder called Android (for example)

  3. We install JAVA

  4. The Phonegap generator of applications will search the Path and the JAVA_HOME variable of the system for the following files (java.exe javac.exe ant.bat android.bat) so it will be necessary to add them

  5. Again: Computer->right-click -> properties -> Advanced System Settings -> Environment Variables -> System Variables (Header image)

  6. If it is not created, we create the variable JAVA_HOME with value (C:Program FilesJavajre7bin) It may vary depending on OS and Java version.

    1. You can search for the necessary path on your PC by searching the disk for the java.exe file
  7. Now let’s go to the Path variable that is already created

    1. We concatenate with ; the following entries
      1. ROUTE_HASTA_CARPETA_ANDROIDAndroidsdktools;
      2. PATH_HASTA_CARPETA_ANDROIDAndroidsdkplatform-tools;
      3. PATH_HASTA_CARPETA_ANDROIDAndroidapache-ant-VERSION_DE_ANT bin
      4. C:Program FilesJavajdk1.7.0_13lib; *
      5. C:Program FilesJavajdk1.7.0_13bin; *
  8. Windows key -> CMD -> Go to path to PATH_HASTA_CARPETA_ANDROIDAndroidphonegap-2.9.0libandroidbin

  9.  create.bat C:pathtophonegap_project com.ejemplo.proyecto NombreDelProyecto
  10. Go to PATH_HASTA_CARPETA_ANDROIDAndroideclipse and open eclipse

  11. File import-> Androidproject ->select folder

    C:pathtophonegap_project
  12. You now have your basic phonegap app.

  • These folders may be located elsewhere, you can search for the javac.exe file on your disk to get an indicative path.

Now we will only have to open Eclipse which is in PATH_HASTA_CARPETA_ANDROIDAndroideclipse and start programming.

Related