[SOLVED] Deploying to Google Play gives Package file was not signed correctly
-
I have uploaded an app to Google Play. When I first uploaded the apk it complained that it was in a debug build. It wasn't, I had done it as a release build.
I then realised I had not signed it, so I created a key using keytool, then put the setting into Qt using the Sign Package section. Recompiled and then it all uploaded into Google Play OK and it accepted it.
I then waited for 3-4 hours for the app to appear. Tried downloading it and horror of horrors, "Package file was not signed correctly". I have unpublished it now until I can figure out what is happening.
Anybody got an idea?
-
Bit more information, if I run jarsigner, it gives:
@
developer@TriNova19:~/StreetTrack/android/bin$ jarsigner -verify -verbose StreetTrack-signed.apks 4160 Tue Nov 19 16:11:00 GMT 2013 META-INF/MANIFEST.MF
4322 Tue Nov 19 16:11:00 GMT 2013 META-INF/TRINOVA.SF
1455 Tue Nov 19 16:11:00 GMT 2013 META-INF/TRINOVA.RSA
sm 712 Tue Nov 19 16:10:50 GMT 2013 res/layout/splash.xml
sm 5420 Tue Nov 19 16:10:50 GMT 2013 AndroidManifest.xml
sm 16336 Tue Nov 19 16:10:50 GMT 2013 resources.arsc
sm 4788 Tue Nov 19 16:10:50 GMT 2013 res/drawable-hdpi/icon.png
sm 4788 Tue Nov 19 16:10:50 GMT 2013 res/drawable-ldpi/icon.png
sm 4788 Tue Nov 19 16:10:50 GMT 2013 res/drawable-mdpi/icon.png
sm 104072 Tue Nov 19 16:10:48 GMT 2013 classes.dex
sm 209144 Tue Nov 19 16:10:38 GMT 2013 lib/armeabi-v7a/lib--Managed_by_Qt_Creator--plugins_imageformats_libqmng.so
sm 345276 Tue Nov 19 16:10:38 GMT 2013 lib/armeabi-v7a/lib--Managed_by_Qt_Creator--plugins_platforms_libqminimalegl.so
sm 415476 Tue Nov 19 16:10:38 GMT 2013 lib/armeabi-v7a/lib--Managed_by_Qt_Creator--plugins_platforms_android_libqtforandroidGL.so
sm 38040 Tue Nov 19 16:10:38 GMT 2013 lib/armeabi-v7a/lib--Managed_by_Qt_Creator--plugins_imageformats_libqtga.so
sm 38040 Tue Nov 19 16:10:38 GMT 2013 lib/armeabi-v7a/lib--Managed_by_Qt_Creator--plugins_imageformats_libqico.so
sm 38040 Tue Nov 19 16:10:38 GMT 2013 lib/armeabi-v7a/lib--Managed_by_Qt_Creator--plugins_bearer_libqgenericbearer.so
sm 1225620 Tue Nov 19 16:10:38 GMT 2013 lib/armeabi-v7a/libgnustl_shared.so
sm 3138948 Tue Nov 19 16:10:38 GMT 2013 lib/armeabi-v7a/libQt5Widgets.so
sm 169112 Tue Nov 19 16:10:38 GMT 2013 lib/armeabi-v7a/lib--Managed_by_Qt_Creator--plugins_imageformats_libqjpeg.so
sm 37988 Tue Nov 19 16:10:38 GMT 2013 lib/armeabi-v7a/lib--Managed_by_Qt_Creator--plugins_imageformats_libqgif.so
sm 111768 Tue Nov 19 16:10:38 GMT 2013 lib/armeabi-v7a/lib--Managed_by_Qt_Creator--plugins_accessible_libqtaccessiblewidgets.so
sm 38040 Tue Nov 19 16:10:38 GMT 2013 lib/armeabi-v7a/lib--Managed_by_Qt_Creator--plugins_imageformats_libqsvg.so
sm 271900 Tue Nov 19 16:10:38 GMT 2013 lib/armeabi-v7a/lib--Managed_by_Qt_Creator--plugins_imageformats_libqtiff.so
sm 3082676 Tue Nov 19 16:10:38 GMT 2013 lib/armeabi-v7a/libQt5Core.so
sm 38044 Tue Nov 19 16:10:38 GMT 2013 lib/armeabi-v7a/lib--Managed_by_Qt_Creator--plugins_accessible_libqtaccessiblequick.so
sm 38040 Tue Nov 19 16:10:38 GMT 2013 lib/armeabi-v7a/lib--Managed_by_Qt_Creator--plugins_imageformats_libqwbmp.so
sm 345276 Tue Nov 19 16:10:38 GMT 2013 lib/armeabi-v7a/lib--Managed_by_Qt_Creator--plugins_platforms_libqoffscreen.so
sm 411352 Tue Nov 19 16:10:38 GMT 2013 lib/armeabi-v7a/lib--Managed_by_Qt_Creator--plugins_platforms_android_libqtforandroid.so
sm 489920 Tue Nov 19 09:49:18 GMT 2013 lib/armeabi-v7a/libStreetTrack.so
sm 136292 Tue Nov 19 16:10:38 GMT 2013 lib/armeabi-v7a/libQt5Xml.so
sm 1985660 Tue Nov 19 16:10:38 GMT 2013 lib/armeabi-v7a/libQt5Gui.so
sm 1729688 Tue Nov 19 16:10:38 GMT 2013 lib/armeabi-v7a/libQt5XmlPatterns.so
sm 509040 Tue Nov 19 16:10:38 GMT 2013 lib/armeabi-v7a/libQt5Network.so
sm 378068 Tue Nov 19 16:10:38 GMT 2013 lib/armeabi-v7a/lib--Managed_by_Qt_Creator--plugins_platforms_libqeglfs.so
sm 38040 Tue Nov 19 16:10:38 GMT 2013 lib/armeabi-v7a/lib--Managed_by_Qt_Creator--plugins_platforms_libqminimal.sos = signature was verified
m = entry is listed in manifest
k = at least one certificate was found in keystore
i = at least one certificate was found in identity scopejar verified.
Warning:
This jar contains entries whose certificate chain is not validated.Re-run with the -verbose and -certs options for more details.
@ -
If I deploy to the tablet from QT:
@
16:11:03: Package deploy: Running command '/home/developer/android/android-sdk-linux/platform-tools/adb -s 43000f993a3e30df install /home/developer/StreetTrack/android/bin/StreetTrack-signed.apk'.
5735 KB/s (7736951 bytes in 1.317s)pkg: /data/local/tmp/StreetTrack-signed.apk
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
@ -
Solved. If anybody else has this problem here is what I did.
As listed in these instructions:
http://developer.android.com/tools/publishing/app-signing.html#signapp
@
Caution: As of JDK 7, the default signing algorithim has changed, requiring you to specify the signature and digest algorithims (-sigalg and -digestalg) when you sign an APK.
@Signing it manually with these extra parameters worked.
-
Hi,
I think you should open a bug report with your findings in the "bug report system":http://bugreports.qt-project.org so it might get addressed. Don't forget to check whether someone else already opened one. In any case posting a link to the report here would be highly appreciated
In between, please update the thread title prepending [solved] so other forum user may know a solution has been found :)