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

"Invalid revision: zipalign" when building for android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • 6.5.7, 6.7.3, 6.8.0 RC, 6.9.0 FF
    • 6.2.0 Alpha
    • None
    • Debian 10 buster AMD64
      QtCreator 4.15.1
      Android Build Tools 30.0.3
      Android SDK 30
      Android NDK 21.3.6528147
    • Android
    • 58542f9c3 (dev), 8f09ff24c (6.8), 347109752 (6.7), dafd859c0 (tqtc/lts-6.5), b5c6ee9b1 (tqtc/lts-6.2)
    • 2024wk34s2FOQtforAndroid

    Description

      To reproduce:

      • Create new Qt Quick Application - Scroll with QtCreator 4.15.1
      • Select Android Qt 6.2.0 Clang arm64-v8a kit
      • Build

       Result:

       

      FAILURE: Build failed with an exception.
      * Where:
      Build file '/home/vincas/code/test/build-zipalign_bug-Android_Qt_6_2_0_Clang_arm64_v8a-Debug/android-build/build.gradle' line: 39
      * What went wrong:
      A problem occurred evaluating root project 'android-build'.
      > Invalid revision: zipalign
      

      If you look into build-zipalign_bug-Android_Qt_6_2_0_Clang_arm64_v8a-Debug/android-zipalign_bug-deployment-settings.json contains "sdkBuildToolsRevision": "zipalign",

      Also, build-zipalign_bug-Android_Qt_6_2_0_Clang_arm64_v8a-Debug/android-build/gradle.properties contains androidBuildToolsVersion=zipalign too.

      Clicking "Create Templates" and editing android/gradle.properties and adding androidBuildToolsVersion=30.0.3 does not help.

      Workaround is to modify build-zipalign_bug-Android_Qt_6_2_0_Clang_arm64_v8a-Debug/android-build/gradle.properties, changing zipaling into build tools you are using, like androidBuildToolsVersion=30.0.3
       

      Attachments

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

        Activity

          People

            assam Assam Boudjelthia
            talkless Vincas Dargis
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes