Create a project with PhoneGap (Cordova) and enable Android Simulator testing

Source: Internet
Author: User
Tags install node android sdk manager

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.