Getting windows to play nicely with phonegap
Recommend before you start download an environment variable editor such as rapidEE.
- Install NodeJS
- Install Winant
- Install android SDK for windows Make sure the following is in your PATH env var:
- android bin. Eg: C:\Tools\adt-bundle-windows-x86_64-20130917\adt-bundle-windows-x86_64-20130917\sdk\tools
- android platform tools. Eg: C:\Tools\adt-bundle-windows-x86_64-20130917\adt-bundle-windows-x86_64-20130917\sdk\platform-tools
- ant bin. Eg: C:\Program Files (x86)\WinAnt\bin
- nodejs bin. Eg: C:\Program Files\nodejs
- nodejs NPM bin. Eg: C:\Users\pw\AppData\Roaming\npm
- jdk bin. Eg: C:\Program Files\Java\jdk1.7.0_25\bin
- Make sure your JAVA_HOME env var is set:
- JAVA_HOME Eg: C:\Program Files\Java\jdk1.7.0_25
install the phonegap node package
node npm install -g phonegap
- Install android virtual device (AVD) using the android program
- you should be able to build locally by changing in to the root dir of this project and typing:
node phonegap local build android
- you should be able to build locally by changing in to the root dir of this project and typing:
you should be able to build/install/run android emulator via the command line in a single call
phonegap local run android --emulator
Debugging: In a separate console type:
adb logcat | findstr "Web Console"