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

Android SDK 28 won't be used on armeabi-v7a devices

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.12.0
    • Build System
    • None
    • Android

    Description

      When compiling a for armeabi-7va target, the max SDK used is 27, not 28, even if SDK 28 is installed:

      ~/Library/Android/sdk/platforms] $ ls
      android-19 android-21 android-23 android-24 android-27 android-28
      
      13:58:51: Starting: "/Users/jhihn/Qt/5.12.0/android_armv7/bin/androiddeployqt" --input /Users/jhihn/Projects/build-test_android-Android_for_armeabi_v7a_Clang_Qt_5_12_0_android_armv7-Debug/android-libtest_android.so-deployment-settings.json --output /Users/jhihn/Projects/build-test_android-Android_for_armeabi_v7a_Clang_Qt_5_12_0_android_armv7-Debug/android-build --android-platform android-27 --jdk /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home --gradle
      Generating Android Package
        Input file: /Users/jhihn/Projects/build-test_android-Android_for_armeabi_v7a_Clang_Qt_5_12_0_android_armv7-Debug/android-libtest_android.so-deployment-settings.json
        Output directory: /Users/jhihn/Projects/build-test_android-Android_for_armeabi_v7a_Clang_Qt_5_12_0_android_armv7-Debug/android-build/
        Application binary: /Users/jhihn/Projects/build-test_android-Android_for_armeabi_v7a_Clang_Qt_5_12_0_android_armv7-Debug/libtest_android.so
        Android build platform: android-27
      

      I don't know why it's only using 27? gradle.properties:

      androidBuildToolsVersion=28.0.2
      androidCompileSdkVersion=28
      buildDir=build
      qt5AndroidDir=/Users/jhihn/Qt/5.12.0/android_armv7/src/android/java
      

      However if I manually change the --android-platform android-27 to android-28, and invoke it from a shell, it builds and deploys fine.

      Note, I do have 28.0.3 installed (latest as of this writing):

      ~/Library/Android/sdk/build-tools] $ ls
      27.0.3 28.0.2 28.0.3
      

      Attachments

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

        Activity

          People

            scorp1us Jason Hihn
            scorp1us Jason Hihn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes