Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.15.2, 6.2.0
-
None
-
Qt Creator 5.0.2
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
- is required for
-
QTBUG-86887 Allow setting custom name for an Android apk
-
- Reported
-