Today, due to the project requirements, using the PhoneGap, the following is the PHONEGAP Android environment build:
1. Preparatory work:
(1) Nodo.js environment, Java Environment, Android Environment, PHONEGAP Environment, ant Environment, Cordova Environment (this will be installed automatically in the configuration PhoneGap environment) to see that the environment head is dizzy, then one by one explain it.
2.nodo.js to the official website http://nodejs.org/Download node installation package, download complete installation can be completed.
3. The Nodo.js program will appear when you finish loading it.
4. There is a node. JS environment, folded down to configure phonegap; open command Line inputnpm install -g phonegap 就会出现光标一直闪开始云下载
About 10 seconds to download the complete, see your will appear Phongap folder
5. There is a phonegap environment, in the command line inputphonegap create my-app "my-app" 是文件夹 包名是是phonegap默认的 。
If you use Cordova, you can name your own package name.
6. Enter the CD My-app into the project folder you just created.
7. Execute in this directoryphonegap run android 这个就结束了,你的创建的目录下就会出现 ..\my-app\platforms\android 多出来android目录 里面就有Android工程了。其间如果提示你没有Java 环境 请配置! 提示你android 环境 配置下!提示Ant 环境 配置下!PhoneGap默认是要求android-19的android SDK 没办法去下载吧,不然过不了。
Official website: http://phonegap.com/install/and Http://docs.phonegap.com/en/4.0.0/guide_overview_index.md.html#Overview Depending on the configuration above
PhoneGap3.0 Environment Build Android Demo