Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-97756

Unable to sign android package with custom name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.2, 6.2.0
    • None
    • Qt Creator 5.0.2
    • Android

    Description

      This is useful if the android package has a custom name that contains, for example, a version number etc. This is especially useful when publishing apps to Google Play.

      This can be achieved by setting archivesBaseName in build.gradle e.g.:

      defaultConfig {        
        resConfig "en"        
        minSdkVersion qtMinSdkVersion        
        targetSdkVersion qtTargetSdkVersion 
        archivesBaseName = "custom-name-build"    
      }
      

      However, this does not work properly if "Sign package" (which is also required on Google Play) is active.

      There are two types of errors there:

      • if Build Android App Bundle (*.aab) was not selected:
      Unable to open 'R:/build-test18-Android_Qt_6_2_0_Clang_armeabi_v7a-Release/android-build//build/outputs/apk/release/android-build-release-unsigned.apk' for verification
      Unable to open 'R:/build-test18-Android_Qt_6_2_0_Clang_armeabi_v7a-Release/android-build//build/outputs/apk/release/android-build-release-unsigned.apk' as zip archive
      • if Build Android App Bundle (*.aab) was selected:
      Signing file R:/build-test18-Android_Qt_6_2_0_Clang_armeabi_v7a-Release/android-build//build/outputs/apk/release/android-build-release-unsigned.apk
      jarsigner command failed.

      I attach a simple application (test18.zip) to reproduce this problem.

       

      Attachments

        Issue Links

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

          Activity

            People

              qtandroidteam Qt Android Team
              permotion88 Karol Polak
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes