i tried to add keystore properties into two files in the platforms/android directory.
key.store=Users/admin/workspace/android-keystore/keystore
key.alias=keystore
into
ant.properties
and
project.properties
File.
It worked fine in previous version, but not seems like the Cordova does not using ant in latest version.
So if i run command:
cordova build android --release
I always get only unsigned apk.
platforms/android/build/outputs/apk/android-release-unsigned.apk
How can i solve it please?
Many thanks for any help.
Because cordova now uses gradle, you need to create a file called release-signing.properties in your platforms/android/ directory
The settings looks like:
storeFile=relative/path/to/keystore.p12
storePassword=SECRET1
storeType=pkcs12
keyAlias=DebugSigningKey
keyPassword=SECRET2
You can also use JKS files:
storeType=jks
storeFile=mykeystore.keystore
For more information see: https://cordova.apache.org/docs/en/edge/guide_platforms_android_tools.md.html
Here is what I use:
storeType=jks
storeFile=/absolute/path/to/my/file.keystore
storePassword=mypassword1
keyAlias=myaliasname
keyPassword=mypassword2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With