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.
  • A Offline
    A Offline
    abanksdev
    wrote on 30 Apr 2018, 20:55 last edited by
    #1

    Hi all!

    I am trying to get my Qt environment set up for android dev. I've included the sdk and ndk paths. Everything in the checklist (pictured below) is looking good except for the 'Platform SDK installed' which has a red x next to it. Does anyone know what might be causing this?
    0_1525121590955_Screen Shot 2018-04-30 at 4.43.37 PM.png
    Additionally, whenever I include the path for the location of the Android SDK, Qt prompts me with the following:
    0_1525121655192_Screen Shot 2018-04-30 at 4.54.05 PM.png
    But when I click 'yes' nothing happens. I assume these two issues go hand in hand. I don't want to start developing only to realize that something is all messed up because I didn't link up my android environment with my qt environment properly from the get go.

    Thanks all!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 30 Apr 2018, 21:05 last edited by
      #2

      Hi,

      What version of Qt are you using ?
      On what version of macOS ?

      Did you install the SDK/NDK prior to Qt Creator ?

      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
      -1
      • A Offline
        A Offline
        abanksdev
        wrote on 1 May 2018, 14:47 last edited by
        #3

        Im using Qt 5.10
        on High Sierra version 10.13.4

        I had installed the SDK prior to installing Qt Creator, I installed the NDK after installing Qt Creator

        0_1525186040536_Screen Shot 2018-05-01 at 10.31.41 AM.png

        E 1 Reply Last reply 2 May 2018, 05:46
        0
        • A abanksdev
          1 May 2018, 14:47

          Im using Qt 5.10
          on High Sierra version 10.13.4

          I had installed the SDK prior to installing Qt Creator, I installed the NDK after installing Qt Creator

          0_1525186040536_Screen Shot 2018-05-01 at 10.31.41 AM.png

          E Offline
          E Offline
          ekkescorner
          Qt Champions 2016
          wrote on 2 May 2018, 05:46 last edited by
          #4

          @abanksdev which version of QtCreator are you using ?
          I'm using 4.5.1 and this versions makes it very easy to manage Android SDK and Tools

          ekke ... Qt Champion 2016 | 2024 ... mobile business apps
          5.15 --> 6.8 https://t1p.de/ekkeChecklist
          QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

          1 Reply Last reply
          0
          • J Offline
            J Offline
            J.Hilk
            Moderators
            wrote on 2 May 2018, 06:17 last edited by
            #5

            I actually run into this a couple of days ago,

            the problem for me was, I had prio to everything RAD Studio installed, that came with its own SDK and NDK packages.

            Later I installed the newes SDK and NDK manually in a specific folder and hat the same issue setting up android kits in QtCreator

            The solution was to link against the previous installation of sdk, the one from RAD Studio, et voliĆ , every thing works as intended.

            So, you should check for prior installations of android sdk, for example through Android studio.


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            A 1 Reply Last reply 2 May 2018, 18:14
            1
            • J J.Hilk
              2 May 2018, 06:17

              I actually run into this a couple of days ago,

              the problem for me was, I had prio to everything RAD Studio installed, that came with its own SDK and NDK packages.

              Later I installed the newes SDK and NDK manually in a specific folder and hat the same issue setting up android kits in QtCreator

              The solution was to link against the previous installation of sdk, the one from RAD Studio, et voliĆ , every thing works as intended.

              So, you should check for prior installations of android sdk, for example through Android studio.

              A Offline
              A Offline
              abanksdev
              wrote on 2 May 2018, 18:14 last edited by
              #6

              @J.Hilk That might be it, I'll try it. Does that mean that I can't have Android Studio installed and Qt linked up for Android dev? I use both programs

              J 1 Reply Last reply 3 May 2018, 04:21
              0
              • A Offline
                A Offline
                abanksdev
                wrote on 2 May 2018, 18:27 last edited by
                #7

                @ekkescorner I use Qt Creator 4.6.0

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  abanksdev
                  wrote on 2 May 2018, 18:57 last edited by
                  #8

                  @J-Hilk what do you mean by 'link against?'

                  1 Reply Last reply
                  0
                  • A abanksdev
                    2 May 2018, 18:14

                    @J.Hilk That might be it, I'll try it. Does that mean that I can't have Android Studio installed and Qt linked up for Android dev? I use both programs

                    J Offline
                    J Offline
                    J.Hilk
                    Moderators
                    wrote on 3 May 2018, 04:21 last edited by
                    #9

                    @abanksdev
                    No, it's totoaly fine to have Android Studio on your pc as well. What I mean is.

                    If you have installed Android Studio, that installs automatically Android SDK, if you than go and download the standalone Android SDK packet and install that as well.
                    This was the situation I had. and "linking" aka passing the path to the original SDK installation in QtCreator 0_1525321257833_de124aa7-6a22-4e79-b330-69e001b92d54-image.png
                    solved the issue for me.


                    Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                    Q: What's that?
                    A: It's blue light.
                    Q: What does it do?
                    A: It turns blue.

                    1 Reply Last reply
                    1
                    • A Offline
                      A Offline
                      abanksdev
                      wrote on 3 May 2018, 16:43 last edited by
                      #10

                      @J-Hilk okay so basically what you're saying is that I should also install the standalone Android SDK and link to that rather than the SDK that comes with Android Studio?

                      Thanks!

                      Pablo J. RoginaP 1 Reply Last reply 3 May 2018, 16:49
                      0
                      • A abanksdev
                        3 May 2018, 16:43

                        @J-Hilk okay so basically what you're saying is that I should also install the standalone Android SDK and link to that rather than the SDK that comes with Android Studio?

                        Thanks!

                        Pablo J. RoginaP Offline
                        Pablo J. RoginaP Offline
                        Pablo J. Rogina
                        wrote on 3 May 2018, 16:49 last edited by
                        #11

                        @abanksdev no, I understand @J-Hilk says the other way around:

                        passing the path to the original SDK installation in QtCreator

                        setting Qt to use the Android SDK installed automatically by Android Studio (see the paths highlighted in previous post)

                        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 3 May 2018, 18:40 last edited by
                          #12

                          @J-Hilk @Pablo-J-Rogina I've already done that, I'm currently linking to the SDK installed automatically by Android Studio and that's what's causing issues. I don't have any other SDK installed at this time.

                          Pablo J. RoginaP 1 Reply Last reply 3 May 2018, 18:44
                          0
                          • A abanksdev
                            3 May 2018, 18:40

                            @J-Hilk @Pablo-J-Rogina I've already done that, I'm currently linking to the SDK installed automatically by Android Studio and that's what's causing issues. I don't have any other SDK installed at this time.

                            Pablo J. RoginaP Offline
                            Pablo J. RoginaP Offline
                            Pablo J. Rogina
                            wrote on 3 May 2018, 18:44 last edited by
                            #13

                            @abanksdev Ok, re-reading your post I now think what you're missing is SDK tools for a particular API level. See here the example about installing the SDK tools for API level 26:

                            sdkmanager "platforms;android-26"
                            

                            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
                              abanksdev
                              wrote on 4 May 2018, 15:16 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 4 May 2018, 15:41 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 6 May 2018, 01:07 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 9 Sept 2019, 01:42
                                  5
                                  • Pablo J. RoginaP Offline
                                    Pablo J. RoginaP Offline
                                    Pablo J. Rogina
                                    wrote on 7 May 2018, 19:16 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 5 Oct 2018, 17:12 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 19 Dec 2018, 23:12 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 20 Dec 2018, 12:33
                                        1
                                        • O owflayar
                                          19 Dec 2018, 23:12

                                          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 20 Dec 2018, 12:33 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

                                          • Login

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