Cordova developing the Android app brief process

Source: Internet
Author: User

1. Install CORDOVA:NPM install-g Cordova--registry=https://registry.npm.taobao.org

2. Create Cordova Project: Enter the working directory to execute Cordova create Hello Com.example.hello HelloWorld,
The first parameter, hello, specifies a directory name.
The second parameter Com.example.hello a C # namespace, or a Java package name.
The third parameter specifies the display caption for the application.

3. Add Android Support: Go to Engineering catalogue, execute Cordova platform add Android

4. Import the Eclipse project:
Launch Eclipse, right click on [Package Explore], select New, choose to create an Android project with existing code, select the project catalog that we want to import, in the Import Project window we will find two projects, one is the project we created, The other is the new Cordova class library

If an error occurs: He container ' Android Dependencies ' references non existing library ' D:\Dev-tool\xkcoa\platforms\android\ Cordovalib\bin\cordovalib.jar '

Copy the downloaded Cordovalib.jar to the Platforms\android\cordovalib\bin directory.

5. Access the test phone and compile the project mainactivity with Eclipse to run the test.

Cordova developing the Android app brief process

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.