| This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal. |
I am getting a successful release build of my android mobile app, but cannot upload it to the google play store because of the error: "You uploaded an APK that is not signed with the upload certificate. You must use the same certificate."
Though I have set the keystore aliases and passwords in the visualizer project settings, it appears that the build continues to use the debug keystore...
Here is an excerpt from the console log:
...
[exec-shell] :validateSigningRelease
[exec-shell] :packageRelease
[exec-shell] :assembleRelease
[exec-shell]
[exec-shell] BUILD SUCCESSFUL in 1m 49s
[exec-shell] 27 actionable tasks: 27 executed
signApk:
[echo] Release apk signing started.
[copy] Copying 1 file to A:\\pndDriver\\build\\outputs\\apk\\debug
[echo] Invoking APKSigner.jar to sign apk
[java] Getting .andorid folder location
[java] Checking key folder Path = C:\\Users\\sally\\.android
[java] Debug key exists at C:\\Users\\sally\\.android\\debug.keystore
[java] Debug Key not expired
[java] Signing the Apk=A://pndDriver//build//outputs//apk//debug//pndDriver-debug.apk with debugkey=C:\\Users\\sally\\.android\\debug.keystore
[java] Running command =C:\\KonyVisualizerEnterprise8.1.0.0\\java\\jdk\\bin\\jarsigner -sigalg MD5withRSA -digestalg SHA1 -keystore C:\\Users\\sally\\.android\\debug.keystore -storepass android -keypass android A://pndDriver//build//outputs//apk//debug//pndDriver-debug.apk androiddebugkey
[java] jarsigner: unable to sign jar: java.util.zip.ZipException: invalid entry compressed size (expected 27003 but got 27863 bytes)
[java]
[java] Process Exit status = 1
[java] Could not sign the Apk=A://pndDriver//build//outputs//apk//debug//pndDriver-debug.apk\tusing debugkey=C:\\Users\\sally\\.android\\debug.keystore
...
I am wondering if anyone else has run into this situation... and how it was resolved.
Thank you!