Cordova installation in the pit

Source: Internet
Author: User
Tags install node

1, install the Android environment directly skip!

2, install node. JS directly Skip!

3, installation Cordova

NPM install-g Cordova

NPM Uninstall Cordova -G (This is the uninstall command)

Manual: http://archive.apache.org/dist/cordova/

4. Create a project

Cordova Create Hello Com.example.hello "HelloWorld"

5. Designated platform

CD Hello (to the project folder)

Cordova Platform Add Android

This step will usually error, the wrong message means to install Android-22

The solution is as follows:

1) Enter Android list target under command line to view Android Target (my is 15)

2) Modify the Platforms\android file in the project under the Project.Properties target=android-15 (specific with the above to see the line)

6. Import Eclipse to run

Cordova installation in the pit

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.