cordova打包app

0

环境:

npm install -g cordova
cordova create acgist com.acgist acgist
cordova platform add android --save
cordova platform ls
cordova requirements

指定版本:

cordova platform add android@^6 --save

打包:

cordova build
cordova build -release android

签名:

keytool -genkeypair -alias acgist.keystore -keyalg RSA -validity 3650 -keystore acgist.keystore
jarsigner -verbose -keystore acgist.keystore -signedjar app-release-sign.apk app-release-unsigned.apk acgist.keystore

下载gradle太慢可以使用迅雷下载然后添加到路径C:\Users\28954\.gradle\wrapper\dists的相应目录。