Reputation: 2186
I'm trying to upload my app-release.apk
built with cordova client command line commands, but google play keep saying me that I built the app in debug mode.
Here's the step I used to build the apk (following this answer)
keytool -importcert -file deployment_cert.der -keystore release.keystore
cordova build android --release -- --keystore=release.keystore --storePassword=ZZZ --alias=YYY --password=XXX
8.1.2 ([email protected])
Here's the Google screenshot error
Upvotes: 4
Views: 1440
Reputation: 2186
Finally I got this working.
Following this link here's the entire process to have the release apk to be published to Google Play Store
cordova build —release
keytool -genkey -v -keystore android.keystore -alias android-app-key -keyalg RSA -keysize 2048 -validity 10000
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore android.keystore app-release-unsigned.apk android-app-key
/path/to/android-sdk/zipalign -v 4 app-release-unsigned.apk app-release.apk
Upvotes: 4