Install every components
listed below into C:\JAVA (PhoneGap scripts don't handle space well)
Install JDK 8 32 version
Install NodeJS
Install GIS
Install WIN-ANT
Install Eclipse/Android SDK
from Google site http://developer.android.com/sdk/index.html
SETUP JAVA_HOME = C:\Program
Files (x86)\Java\jdk1.8.0_05\bin
c:\>npm install -g cordova
c:\>npm install -g PhoneGap
c:\TEMP\PhoneGap>cordova
create hello com.example.hello HelloWorld
(create helloworld app)
c:\TEMP\PhoneGap>cd hello
c:\TEMP\PhoneGap\hello>cordova
platform add android (add support for ios)
C:\Temp\PhoneGap\hello>cordova
platforms ls (Check platform)
C:\Temp\PhoneGap\hello>cordova
build android (build
app)
C:\Temp\PhoneGap\hello>cordova
emulate android (run
app)
Managing AVD
android list targets
android create avd -n
Nexus_7_2012 -t 1 --skin WVGA800 --abi default/x86 --force
Install the following plugins
cordova plugin add org.apache.cordova.battery-status
cordova plugin add
org.apache.cordova.device-motion
cordova plugin add
org.apache.cordova.device-orientation
cordova plugin add
org.apache.cordova.geolocation
cordova plugin add
org.apache.cordova.camera
cordova plugin add org.apache.cordova.media
cordova plugin add
org.apache.cordova.media-capture
cordova plugin add
org.apache.cordova.file
cordova plugin add
org.apache.cordova.file-transfer
cordova plugin add
org.apache.cordova.dialogs
cordova plugin add
org.apache.cordova.vibration
cordova plugin add
org.apache.cordova.contacts
cordova plugin add
org.apache.cordova.globalization
cordova plugin add
org.apache.cordova.splashscreen
cordova plugin add
org.apache.cordova.inappbrowser
cordova plugin add
org.apache.cordova.console
ERROR: Command failed with
exit code ENOENT (Install
ANT first - https://code.google.com/p/winant/)
No comments:
Post a Comment