phonegap 安装和使用eclipse

1.下载nodejs。。。然后注销让nodejs可用

2.下载jdk,ant。和安卓的sdk。

jdk是为ant编译时需要,设置JAVA_HOME环境变量

C:Program FilesJavajdk1.8.0_05

降ant和sdk的路径添加到path中。。

C:Program Files (x86)Gitin;C:UsersAdministratorAppDataRoaming pm;I:Serverapache-antin;I:Editoradtsdkplatform-tools;I:Editoradtsdk ools;%JAVA_HOME%in

3.检查平台是否安装上:

cordova platforms ls

4.安装phonegap。现在已经更名为cordova。

npm install -g cordova
cordova create hello com.example.hello HelloWorld
 cd hello
cordova platform add android
cordova emulate android

5.导入eclipse作为安卓应用


原文地址:https://www.cnblogs.com/zhepama/p/3719943.html