1, installation of Nodejs,
2, Installation PhoneGap
NPM install-g PhoneGap
3, PhoneGap packaging cheer APK needs to use the Ant Packaging tool, first configure the Java environment:
Download Java JDK and eclipse,android SDK
Click Install Java JDK, in the pop-up interface to recommend the use of default values, so always click "Next>" until the completion.
Copy the path where the bin directory resides, edit the path in the environment variable, add the Java JDK path
Enter "Javac" at the command line to test whether the installation was successful.
4, to the Ant official website http://ant.apache.org/Download the latest version, unzip to the computer.
Configuring environment Variables in Path
%android_home%\tools;%android_home%\platform-tools; Android_home D:\Program Files\adt-bundle-windows\sdk
To see if the installation was successful: Enter the command in the DOS window ant
5. Create a project using PhoneGap:
$PHONEGAP Create My-app
6, Packaging projects:
$CD my-App$phonegap run Android
Packaging Apps with PhoneGap