Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.15.2
-
Ubuntu 20.10, Latest Android SDK & NDK
-
-
08d8c5962930b8bf64d696e07ef65fb0c4871474 (qt/qtbase/dev)
Description
Updating Qt-based Android project to use latest gradle version (suggested by Android Studio) results in a "zipalign command failed." error on a signed APK build with Qt Creator.
Importing the same project output to Android Studio and building from there seems to work fine.
Minimum steps to reproduce:
- Create a basic Android project in Qt Creator
- Select "Create Templates" from project Build Settings
- Update build.gradle with "com.android.tools.build:gradle:4.1.1"
- overwrite gradle wrapper files with up-to-date versions (from Android Studio project)
- Build a signed APK
There is another unrelated issue with gradle.properties, where updating 'org.gradle.jvmargs' to contain '-Dfile.encoding=UTF-8' as in Android Studio project results in build failure because the file.encoding argument is clipped from '=' onwards in the Qt project build directory version of gradle.properties.
Attachments
For Gerrit Dashboard: QTBUG-88989 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
343227,7 | androiddeployqt: Check if apk is already aligned | dev | qt/qtbase | Status: MERGED | +2 | 0 |
347072,3 | Allow for arguments that have an equals as part of it | dev | qt/qtbase | Status: MERGED | +2 | 0 |
349141,2 | Allow for arguments that have an equals as part of it | 6.1 | qt/qtbase | Status: MERGED | +2 | 0 |
349343,2 | Allow for arguments that have an equals as part of it | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |
368345,2 | androiddeployqt: Check if apk is already aligned | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |