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.