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
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.