Using Ant, I\'m trying to build an Android application in release mode for distribution. My problem is at the signing process. I\'ve created a keystore and alias via Eclipse
Using Ubuntu 14.04 (Trusty Tahr) and Windows, create a “.keystore” file.
This file needs to be generated, which can be done with the keytool command that comes with Java. It can typically be found at ‘C:\Program Files\Java\jre7\bin’. Which also has to be added to your PATH variable.
Go to the root of your project and use this command:
Generating a .keystore file:
$ keytool -genkey -v -keystore key-name.keystore -alias alias-name -keyalg RSA -keysize 2048 -validity 10000
Create a file called ant.properties in the folder “platforms/android/” ant.properties.
key.store=D:\\path\\to\\the\\project\\keyname.keystore
key.alias=alias-name
Create the build APK file:
$ cordova build android --release