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