Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-32741

Latest version of Qt/QtCreator does not sign apk silently

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 16.0.0
    • Android Support
    • None
    • Android

    Description

      I'm migrating from Qt 6.2.2 (QtCreator 6.0.2) to Qt 6.9.0 (QtCreator 16.0.0).

      With Qt 6.2.2, I could simply compile and deploy an apk on an Android device. The project's properties has a "Build Android APK"/"Application signature", but I never used it and everything works fine.

      With Qt 6.9.0, if I don't check "Sign package" in "Build Android APK"/"Application signature", I get the error:

       

      adb: failed to install C:/Users/XXXXXXX/Documents/QtExample/camera/build/Android_Qt_6_9_0_Clang_armeabi_v7a-Release/android-build//build/outputs/apk/release/android-build-release-unsigned.apk: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed to collect certificates from /data/app/vmdl639520454.tmp/base.apk: Attempt to get length of null array]
      Installing to device failed!
      Installing Android package to device.
      Running command "C:/Android/rXX_Qt_690/android_sdk/platform-tools/adb.exe -s ffbd8cb2 install -r C:/Users/XXXXXXX/Documents/QtExample/camera/build/Android_Qt_6_9_0_Clang_armeabi_v7a-Release/android-build//build/outputs/apk/release/android-build-release-unsigned.apk"Performing Streamed Install17:10:36: The process "C:\Qt\6.9.0\mingw_64\bin\androiddeployqt.exe" exited with code 16.

       

      The only way to have the apk be deployed is to create/specify an keystore, and unlock it with a password. And this has to be done every time the project is being loaded, which is very annoying.

      Any workaround letting me deploy the app without having to use a keystore nor enter a password would be really appreciated.

       

      Edit: This problem is only for Release apk, Debug apk are silently signed. But one may want to use and test Release apk during development too.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            portale Alessandro Portale
            jpo38 Jean Porcherot
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes