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

Qt5.15 does not work with Newer Android API

    XMLWordPrintable

Details

    • Android

    Description

      When any application is build (any Qt example) with Q5.15.17 or Qt 6.7.2 using newer Android API 34/35 It gives following error. 

      Gradle version used with Qt5.15 is 7.5.1. Gradle version used with Qt6.7.2 is 8.3

      android build platform: android-35
      
        Install to device: No FAILURE: Build failed with an exception. * What went wrong:
      
      A problem occurred configuring root project 'android-build'.
      > Could not resolve all files for configuration ':classpath'.
      > Could not find com.android.tools.build:gradle:8.3.
      
           Searched in the following locations:
      
             - https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/8.3/gradle-8.3.pom
      
             - https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/8.3/gradle-8.3.pom
      
           Required by:
      
               project : 

      various other higher version of Gradle gave same error but somehow  Gradle version 8.0.1 finds .pom file but then it is complaining about android.jar file which when I checked it is very much present in sdk-35 folder: and in SDK-34

       > Task :desugarDebugFileDependencies > Task :processDebugResources FAILED > Task :mergeExtDexDebug FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':processDebugResources'. > A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction > Android resource linking failed      aapt2 E 07-23 23:35:50 75174 52224720 LoadedArsc.cpp:94] RES_TABLE_TYPE_TYPE entry offsets overlap actual entry data.      aapt2 E 07-23 23:35:50 75174 52224720 ApkAssets.cpp:152] Failed to load resources table in APK '/Users/irfanomair/Library/Android/sdk/platforms/android-35/android.jar'.      error: failed to load include path /Users/irfanomair/Library/Android/sdk/platforms/android-35/android.jar 

      Google needs newer API34/35 after August 2024. Qt 5 does not work with API34 or API35. So any update for Qt5 app will not be possible from Sept 2024.

      Attachments

        1. qtbug85201-qtandroidextras-5.15.17.diff
          13 kB
          Sze Howe Koh
        2. qtbug85201-qtbase-5.15.17.diff
          50 kB
          Sze Howe Koh

        Issue Links

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

          Activity

            People

              bruno.vunderl Bruno Vunderl
              irfan.omair@digia.com Irfan Omair
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes