首页 > 代码库 > phonegap环境配置

phonegap环境配置

用于自己备注,呵呵 写的比较简单

操作系统:win7

————————————————————————————————

1,安装JDK

2,下载ADT

3,下载ANT

4,安装node.JS

5,配置环境变量

ANDROID_HOME D:\adt-bundle-windows-x86_64-20131030\sdk

path 加入 D:\apache-ant-1.9.4-bin\bin;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools


开始CMD:

创建APP cordova create app

进入APP cd app

添加平台 cordova platforms add android

添加插件:

cordova plugin add org.apache.cordova.battery-status
cordova plugin add org.apache.cordova.camera
cordova plugin add org.apache.cordova.contacts
cordova plugin add org.apache.cordova.device
cordova plugin add org.apache.cordova.device-motion
cordova plugin add org.apache.cordova.device-orientation
cordova plugin add org.apache.cordova.dialogs
cordova plugin add org.apache.cordova.file
cordova plugin add org.apache.cordova.file-transfer
cordova plugin add org.apache.cordova.geolocation
cordova plugin add org.apache.cordova.globalization
cordova plugin add org.apache.cordova.inappbrowser
cordova plugin add org.apache.cordova.media
cordova plugin add org.apache.cordova.media-capture
cordova plugin add org.apache.cordova.network-information
cordova plugin add org.apache.cordova.splashscreen
cordova plugin add org.apache.cordova.vibration