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
Forum Updated to NodeBB v4.3 + New Features

'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.9k Views 4 Watching
  • 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.
  • 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
                    • D Offline
                      D Offline
                      Daniel Ferede
                      wrote on last edited by
                      #34

                      Yesterday i faced the same issue. The only thing i did is that i downloaded "Java SE Development Kit 8 - jdk1.8.0_241" then both the errors regarding the Platform SDK and SDK manager worked properly.

                      A R 2 Replies Last reply
                      2
                      • D Daniel Ferede

                        Yesterday i faced the same issue. The only thing i did is that i downloaded "Java SE Development Kit 8 - jdk1.8.0_241" then both the errors regarding the Platform SDK and SDK manager worked properly.

                        A Offline
                        A Offline
                        adomanim
                        Banned
                        wrote on last edited by
                        #35
                        This post is deleted!
                        1 Reply Last reply
                        -1
                        • D Daniel Ferede

                          Yesterday i faced the same issue. The only thing i did is that i downloaded "Java SE Development Kit 8 - jdk1.8.0_241" then both the errors regarding the Platform SDK and SDK manager worked properly.

                          R Offline
                          R Offline
                          Ross
                          wrote on last edited by
                          #36

                          I hit this problem yesterday on Qt Creator 4.11.1. I finally did what @ajee did, but slightly different. I went to the qt-creator github and found this file:
                          https://github.com/qt-creator/qt-creator/blob/master/share/qtcreator/android/sdk_definitions.json. In it, you can find

                          [...]
                          "sdk_tools_url": {
                                  "linux": "https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip",
                          

                          I downloaded that zip file and copied over the tools dir like @ajee. I can't find that file in release 4.1.1 https://github.com/qt-creator/qt-creator/tree/v4.11.1/ . Presumably, for future releases, that file may give you a clue as to which SDK tools you're supposed to download for your release of qt creator.

                          P.S. What a pain.

                          R M 2 Replies Last reply
                          1
                          • R Ross

                            I hit this problem yesterday on Qt Creator 4.11.1. I finally did what @ajee did, but slightly different. I went to the qt-creator github and found this file:
                            https://github.com/qt-creator/qt-creator/blob/master/share/qtcreator/android/sdk_definitions.json. In it, you can find

                            [...]
                            "sdk_tools_url": {
                                    "linux": "https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip",
                            

                            I downloaded that zip file and copied over the tools dir like @ajee. I can't find that file in release 4.1.1 https://github.com/qt-creator/qt-creator/tree/v4.11.1/ . Presumably, for future releases, that file may give you a clue as to which SDK tools you're supposed to download for your release of qt creator.

                            P.S. What a pain.

                            R Offline
                            R Offline
                            Ross
                            wrote on last edited by
                            #37

                            Also, I would love it if the Qt team would specify the exact versions of Qt Creator, Android SDK, and Android NDK they're using.

                            1 Reply Last reply
                            3
                            • R Ross

                              I hit this problem yesterday on Qt Creator 4.11.1. I finally did what @ajee did, but slightly different. I went to the qt-creator github and found this file:
                              https://github.com/qt-creator/qt-creator/blob/master/share/qtcreator/android/sdk_definitions.json. In it, you can find

                              [...]
                              "sdk_tools_url": {
                                      "linux": "https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip",
                              

                              I downloaded that zip file and copied over the tools dir like @ajee. I can't find that file in release 4.1.1 https://github.com/qt-creator/qt-creator/tree/v4.11.1/ . Presumably, for future releases, that file may give you a clue as to which SDK tools you're supposed to download for your release of qt creator.

                              P.S. What a pain.

                              M Offline
                              M Offline
                              MangoCat
                              wrote on last edited by
                              #38

                              @Ross +1 for the @ajee solution.

                              I have been trying with Ubuntu 18.04 + OpenJDK 8 + Android Studio 3.6.3 + Qt Creator 4.11.2 / Qt 5.14.2 all downloaded and installed today, and could never get rid of the SDK tools or Platform SDK red Xs in Creator's Devices/Android form until adding the tools folder from your link - I placed it in my ~/Android/Sdk folder, next to the cmdline-tools and platform-tools folders, there was no tools folder there before, no matter what I tried to get Android Studio or sdkmanager to install.

                              As soon as Qt Creator noticed the tools folder, now AVD manager and SDK manager tabs at the bottom of the Devices page are accessible. Here's hoping the rest of the porting process goes smoother.

                              1 Reply Last reply
                              0
                              • W Offline
                                W Offline
                                Where_is_nitish
                                wrote on last edited by Where_is_nitish
                                #39

                                hello @abanksdev @SGaist
                                I'm getting a problem with " Platform-tools installed" Could you please tell me how to solve that.

                                SGaistS 1 Reply Last reply
                                0
                                • W Where_is_nitish

                                  hello @abanksdev @SGaist
                                  I'm getting a problem with " Platform-tools installed" Could you please tell me how to solve that.

                                  SGaistS Offline
                                  SGaistS Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #40

                                  @Where_is_nitish hi and welcome to devnet,

                                  Please open your own thread with all the details you can give about your current situation.

                                  Interested in AI ? www.idiap.ch
                                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  1 Reply Last reply
                                  0
                                  • S Offline
                                    S Offline
                                    Saad02
                                    wrote on last edited by
                                    #41

                                    6f36b587-b94d-47af-93b8-386b538e0c1a-image.png
                                    Please help!

                                    jsulmJ 1 Reply Last reply
                                    0
                                    • S Saad02

                                      6f36b587-b94d-47af-93b8-386b538e0c1a-image.png
                                      Please help!

                                      jsulmJ Offline
                                      jsulmJ Offline
                                      jsulm
                                      Lifetime Qt Champion
                                      wrote on last edited by
                                      #42

                                      @Saad02 Install proper JDK and point to it correctly in "JDK location"...

                                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                                      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