Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. 'Platform SDK installed' red X Adding Android SDK Tools in Qt Creator
QtWS25 Last Chance

'Platform SDK installed' red X Adding Android SDK Tools in Qt Creator

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
42 Posts 22 Posters 32.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    abanksdev
    wrote on last edited by
    #14

    @Pablo-J-Rogina I have Android SDK Platform-Tools version 27.1.10, are you saying I should downgrade to 26?

    1 Reply Last reply
    0
    • Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #15

      @abanksdev No. What I said is that you need to check (and eventually install) the platform SDK you have installed, a component which is different from the platform tools.
      Could you please do:

      $ANDROID_HOME/tools/bin/sdkmanager --list
      

      and look at the top entries under "Installed packages: "

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      2
      • A Offline
        A Offline
        abanksdev
        wrote on last edited by
        #16

        Hi all, it turns out that my JDK was incompatible with my Qt Version...I fixed the issue by deinstalling JDK 10 and installing JDK 8
        I am using the following Qt versions:

        0_1525568650970_Screen Shot 2018-05-05 at 9.03.55 PM.png

        With Qt Creator version 4.6.0

        And the sdk and ndk I am linking to are packaged within Android Studio (although I did have to download and install the ndk separately.)

        Aleksey_KA 1 Reply Last reply
        5
        • Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on last edited by
          #17

          @abanksdev great! so if your issue is solved, please don't forget to mark your post as such. Thanks.

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0
          • W Offline
            W Offline
            Winning
            wrote on last edited by
            #18

            Check out this site http://wiki.qt.io/Qt_for_Android_known_issues

            1 Reply Last reply
            0
            • O Offline
              O Offline
              owflayar
              wrote on last edited by
              #19

              I put in "--verbose" under Tools>Options>Devices>SDK Manager>Advanced Options and the red cross on platform SDK went away.
              0_1545261153164_860ebc3c-1456-46dd-9dbc-d57e6e101d16-image.png 0_1545261162111_ad141927-4b66-4df1-ac29-ea993afe2f20-image.png

              Pablo J. RoginaP 1 Reply Last reply
              1
              • O owflayar

                I put in "--verbose" under Tools>Options>Devices>SDK Manager>Advanced Options and the red cross on platform SDK went away.
                0_1545261153164_860ebc3c-1456-46dd-9dbc-d57e6e101d16-image.png 0_1545261162111_ad141927-4b66-4df1-ac29-ea993afe2f20-image.png

                Pablo J. RoginaP Offline
                Pablo J. RoginaP Offline
                Pablo J. Rogina
                wrote on last edited by
                #20

                @owflayar what if you try Androdi sdk-manager from command line? See my previous responses

                Upvote the answer(s) that helped you solve the issue
                Use "Topic Tools" button to mark your post as Solved
                Add screenshots via postimage.org
                Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  ajee
                  wrote on last edited by
                  #21

                  Hi all,

                  I met such problem and I could summarise how to fix it.
                  Symtom:

                  1. "platform sdk not installed" in Manage Kits->Device.
                  2. can't select Android build SDK in Active Project Build Setting for arm target.

                  Solution:

                  1. Install java8 and point the JDK location to it instead of java9 or java10
                  2. as @Winning points out the link:

                  There are issues with the updated Android SDK which makes it impossible to use it together with earlier versions of Qt for Android. This has been fixed in Qt 5.9.0, but for older versions, it is possible to use the following links to download a working version of the SDK (do not update the SDK after downloading): macOS Windows and Linux.

                  Download tools_r25.2.5 and replace your SDK tools. Although my Qt is 5.12.0, this replacement is still required so the fix seems not in Qt 5.9.0 or later.

                  Now all works well :)

                  1 Reply Last reply
                  4
                  • CybrumC Offline
                    CybrumC Offline
                    Cybrum
                    wrote on last edited by
                    #22

                    Dear All,

                    I was facing the same issue and I resolved by changing JDK,NDK and SDK. I have tried with JDK 12, NDK r19c and SDK 26.
                    JDK 12 had version issues, NDK r19c had toolchain issues and SDK 26 had platform SDK issues.

                    Finally, i fixed the environment by using below configuration:
                    JDK 8, NDK r18b, SDK 25.2.5.

                    I am using kit: Android for armeabi-v7a (Clang Qt 5.12.2 for Android ARMv7).

                    @ajee I followed the step as you mentioned "Download tools_r25.2.5 and replace your SDK tools." It worked. Thank you.

                    Please overwrite all files while copying into tools folder. Don't skip files.

                    @abanksdev Please mark the topic resolved.

                    0_1553167492024_android1.png

                    Vasiliy BliznetsovV 1 Reply Last reply
                    1
                    • I Offline
                      I Offline
                      IronAttorney
                      wrote on last edited by IronAttorney
                      #23

                      I had this exact problem on ubuntu 19.04 using QtCreator 4.8.2, Qt5.12.1 and setting the JDK path to an openjdk-12 directory that I downloaded and extracted to amy own directory. I tried setting the path to openjdk-11 which is installed already on my machine already in the default location on ubuntu (/usr/lib/jvm/java-xx-openjdk-xxx), and when the problem persisted, following the advice here, I installed openjdk-8 via apt package manager, it was installed to the dafault localtion (/usr/lib/jvm/java-xx-openjdk-xxx) and now the it has stopped complaining (regarding the platform SDK installed error). Thanks guys for the help, before finding this page I was messing around with SDK installations for ages as it is not at all obvious that the JDK is at fault here.

                      To summarise for quick viewing:

                      • trying to use openjdk 11 (and 12?) also causes this error
                      • openjdk12 was not installed in the default ubuntu location when I tried it, and a default install openjdk 11 was present, so it's possible jdk12 might actually work of 11 wasn't present
                      • using openjdk 8 fixed the issue as others have found
                      1 Reply Last reply
                      0
                      • I Offline
                        I Offline
                        IronAttorney
                        wrote on last edited by
                        #24

                        Would an update to https://doc.qt.io/qt-5/android-getting-started.html stating that you must use openjdk-8 be appropriate? Or is the issue more complicated than a "one size fits all" approach? And is it possible for non Qt staff to submit updates to the docs for approval? I'll happily do it myself if so

                        1 Reply Last reply
                        0
                        • CybrumC Cybrum

                          Dear All,

                          I was facing the same issue and I resolved by changing JDK,NDK and SDK. I have tried with JDK 12, NDK r19c and SDK 26.
                          JDK 12 had version issues, NDK r19c had toolchain issues and SDK 26 had platform SDK issues.

                          Finally, i fixed the environment by using below configuration:
                          JDK 8, NDK r18b, SDK 25.2.5.

                          I am using kit: Android for armeabi-v7a (Clang Qt 5.12.2 for Android ARMv7).

                          @ajee I followed the step as you mentioned "Download tools_r25.2.5 and replace your SDK tools." It worked. Thank you.

                          Please overwrite all files while copying into tools folder. Don't skip files.

                          @abanksdev Please mark the topic resolved.

                          0_1553167492024_android1.png

                          Vasiliy BliznetsovV Offline
                          Vasiliy BliznetsovV Offline
                          Vasiliy Bliznetsov
                          wrote on last edited by
                          #25
                          This post is deleted!
                          1 Reply Last reply
                          0
                          • Vasiliy BliznetsovV Offline
                            Vasiliy BliznetsovV Offline
                            Vasiliy Bliznetsov
                            wrote on last edited by
                            #26

                            Hi, I have some troubles with Qt for android too. Here is my qt android settings:
                            0_1560767038957_6b0e2df2-048a-4894-8a5e-0353fd0aa6a2-image.png

                            And error that I get:
                            0_1560767075833_0f9d1385-4e81-44aa-8208-189cd42eb862-image.png

                            I use kit: "Android for armeabi-v7a (Clang Qt 5.12.4 for Android ARMv7)"

                            Can anybody help me please? :(

                            1 Reply Last reply
                            0
                            • Vasiliy BliznetsovV Offline
                              Vasiliy BliznetsovV Offline
                              Vasiliy Bliznetsov
                              wrote on last edited by
                              #27

                              Hm, it's kinda weird, but I made android apk.
                              So what I've done:
                              I founded that I use build-tools ver. 29.0.0 but should use 28.0.3
                              I didn't realize how to downgrade it so I just replace one file (aidl.exe) from 28.0.3 to 29.0.0 and it works.
                              Now I able to build android apk.
                              If someone need I could share my Qt android pacl

                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                meisterpeeps
                                wrote on last edited by
                                #28

                                I had to uninstall jdk12 and install 8 for it to work. Is QT not compatible with 12? If not, there should be an indication of this when installing--that is indicate which versions of Java it is compatible with.

                                Aleksey_KA 1 Reply Last reply
                                0
                                • V Offline
                                  V Offline
                                  Valter Buriti
                                  wrote on last edited by
                                  #29

                                  138/5000
                                  I solved this problem by installing on QT5.13 earlier versions of NDK 20, from version 10e to 19c, this error no longer appeared.

                                  1 Reply Last reply
                                  0
                                  • A abanksdev

                                    Hi all, it turns out that my JDK was incompatible with my Qt Version...I fixed the issue by deinstalling JDK 10 and installing JDK 8
                                    I am using the following Qt versions:

                                    0_1525568650970_Screen Shot 2018-05-05 at 9.03.55 PM.png

                                    With Qt Creator version 4.6.0

                                    And the sdk and ndk I am linking to are packaged within Android Studio (although I did have to download and install the ndk separately.)

                                    Aleksey_KA Offline
                                    Aleksey_KA Offline
                                    Aleksey_K
                                    wrote on last edited by
                                    #30

                                    @abanksdev thanks! For me it also works only with openjdk 1.8 (Java 8). I have openSUSE, Qt Creator 4.10, Qt 5.13.1.

                                    1 Reply Last reply
                                    0
                                    • M meisterpeeps

                                      I had to uninstall jdk12 and install 8 for it to work. Is QT not compatible with 12? If not, there should be an indication of this when installing--that is indicate which versions of Java it is compatible with.

                                      Aleksey_KA Offline
                                      Aleksey_KA Offline
                                      Aleksey_K
                                      wrote on last edited by
                                      #31

                                      @meisterpeeps seems Android Studio does not work well with jdk 12 as well: sdkmanager crashes.

                                      1 Reply Last reply
                                      0
                                      • A Offline
                                        A Offline
                                        antigua
                                        wrote on last edited by
                                        #32

                                        Configuring QT 5.13 with Platform SDK installed error . I also have Android Studio 3.5 installed . Go to the settings of the Studio paths and copy them, JDK Android Studio puts its own, enter everything as it is in QT. The error disappears, QT starts to see all Studio and AVD tools. In the folder .android\ "empty" repositories.cfg " file. For successful compilation , in qmake add QMAKE_LINK + = - nostdlib++

                                        1 Reply Last reply
                                        0
                                        • A Offline
                                          A Offline
                                          antigua
                                          wrote on last edited by
                                          #33

                                          2019-10-24_09-40-37.png

                                          1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved