Compiling cordova-android Code

Source: Internet
Author: User

Development Cordova-android plug-in to introduce Cordova jar package, online packaging good uneven, not necessarily the latest version, the following we packaged Cordova jar package.

1.clone Code

git address for cordova-android: git://git.apache.org/cordova-android.git

2. Configure the Ant

I downloaded the 1.9.7.

Http://124.202.164.15/files/507700000800F9E8/apache.opencas.org//ant/binaries/apache-ant-1.9.7-bin.zip

Configuring Environment variables

ant_home=c:\programfiles\apache-ant-1.9.7

Classpath=c:\programfiles\apache-ant-1.9.7\lib

Add%ant_home%\bin in Path;

The following message appears on the command line stating that the configuration was successful:

3. Compiling

To switch to the source directory and compile with the Ant Jar command, the following error occurred:

The error message indicates that it is necessary to run ' Android update Project-p '. command, note the last point '. ' Cannot be lost, after running the result:

Then continue running the Ant jar, after running the result:

The compiled file is then generated in the code directory:

Cordova-5.2.9-dev.jar is our build-generated jar package, which can be used to develop the Cordova plugin in the Android Studio project.

Compiling cordova-android Code

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.