4

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 (cordova-lib@8.1.1)

Here's the Google screenshot error

enter image description here

Dario Rusignuolo
  • 2,090
  • 6
  • 38
  • 68

1 Answers1

4

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
Dario Rusignuolo
  • 2,090
  • 6
  • 38
  • 68