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

Build errors on Android with latest gradle

    XMLWordPrintable

Details

    • Android
    • 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

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            heikki Heikki Haveri
            Votes:
            2 Vote for this issue
            Watchers:
            15 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes