Cordova Build Android-release
I observed a new version of the Cordova, using the Gradle to build the project, So online those settings ant.properties solution are excluded, can not use, in order to see what we need to let Cordova know where to find KeyStore, I opened the "Project Path \platforms\android" The following Build.gradle file, which is impressively written:
if (Ext.cdvdebugsigningpropertiesfile = = null && file (' Debug-signing.properties '). Exists ()) {
Ext.cdvdebugsigningpropertiesfile = ' debug-signing.properties '
}
if (Ext.cdvreleasesigningpropertiesfile = = null && file (' Release-signing.properties '). Exists ()) {
Ext.cdvreleasesigningpropertiesfile = ' release-signing.properties '
}
1
2
3
4
5
6
What the hell is this? The author also temporarily explain unclear, but through the key words can see, we need a release-signing.properties to hint gradle keystore position, so in "project path \platforms\android" Create a new release-signing.properties below:
Key.store=xxxx-release.keystore (the author's understanding is: With the Build.gradle file root homology, in a path so directly write file name)
Key.alias=xxxx
Key.store.password= your store code.
Key.alias.password= your alias password (if you enter Y to unify the two passwords when generating keystore, that's the same as the previous line)
1
2
3
4
Okay, so I can finally sign the APK T-T,
Cordova Build Android–release
1
After this, we can see the "Project Path \platforms\android\build\outputs\apk" under the release version of our signed apk.
Cordova Package Release version apk