PS: Installation process refer to this page of Cordova official website
1. Installing Cordova
Go to Cordova website to download and install
Or: Download and install node. js, under the premise that NPM can be used
Installing with NPM install cordova-g in cmd
2. Installing the JDK
Includes: JDK SDKs ant
PS: Remember to add environment variables, including
The bin directory of the JDK, the Platform-tools directory of the SDK, the tools directory of the SDK, the ant bin directory
and the new environment variable Java_home value for the JDK directory
3. Create an Android simulator
Launching the SDK in the Android SDK Manager.exe
Right-click to unlock the ps:win7 without permission
Set AVD name (name), Device (screen size), Target (System version), Skin (standard), RAM (memory), etc. on new
4. Create an App
CMD in execute Cordova create AppName
5. Add a platform
Go to project folder
Execute Cordova platform add Android command added Android platform
PS: Of course you can add other platforms
Cordova Platforms LS View added
Cordova platform Remove name to delete the specified platform
6. Start
Cordova emulate name starts the specified
Cordova Run--emulator start default
Cordova Run--target=name start the specified
PS: Which one can I use?
@zhnoah
Source: http://www.cnblogs.com/zhnoah/
This article is owned by me and the blog Park, Welcome to reprint, but without the consent of the author must retain this paragraph, and in the article page obvious location to the original
The right to pursue legal liability.
Create a project with PhoneGap (Cordova) and enable Android Simulator testing