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

Unable to sign android package with custom name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.2, 6.2.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Qt Creator 5.0.2
    • Platform/s:
      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

        1. test18.zip
          62 kB
          Karol Polak
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            qtandroidteam Qt Android Team
            Reporter:
            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