Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Android build SDK not defined. Check Android settings. Qt 5.9.1, QtCreator 4.4.0, with Android Studio.
QtWS25 Last Chance

Android build SDK not defined. Check Android settings. Qt 5.9.1, QtCreator 4.4.0, with Android Studio.

Scheduled Pinned Locked Moved Solved General and Desktop
33 Posts 18 Posters 31.8k 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.
  • M Offline
    M Offline
    MarcT
    wrote on 21 Sept 2017, 02:24 last edited by
    #4

    Running into the same issue just after updating
    Android build SDK not defined. Check Android settings.
    Error while building/deploying project ???? (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.9.1 for Android armv7))
    When executing step "Build Android APK"

    1 Reply Last reply
    1
    • J Offline
      J Offline
      joaopagotto
      wrote on 21 Sept 2017, 11:51 last edited by joaopagotto
      #5

      See my screenshots:

      In this configuration was to appear the following platforms:
      android-19
      android-25
      android-26

      But the "Android Build SDK" list is always empty.

      alt text

      alt text

      alt text

      alt text

      alt text

      alt text

      alt text

      alt text

      alt text

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MarcT
        wrote on 21 Sept 2017, 23:25 last edited by MarcT
        #6

        I took the time to check the "Android build SDK" setting and mine is empty as joaopagotto

        0_1506036075003_2017-09-21 19_15_59-[master] -  Qt Creator.png

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sierdzio
          Moderators
          wrote on 22 Sept 2017, 09:11 last edited by
          #7

          I can only (sadly) confirm this also happens on Linux, after updating Android SDK. I'm 100% sure my env. worked fine before I run the update, and updating the SDK was the only change that happened.

          Grrr. I need to finally learn to only update Android SDK when forced to. They keep breaking the builds soo often nowadays.

          (Z(:^

          1 Reply Last reply
          0
          • V Offline
            V Offline
            Vikas Pachdha
            wrote on 22 Sept 2017, 13:25 last edited by Vikas Pachdha
            #8

            The sdkmanager tool's output changed in SDK tools version 26.1.
            The issue will be addressed in QTC 4.5. (QTCREATORBUG-18962)

            1 Reply Last reply
            0
            • R Offline
              R Offline
              Remo
              wrote on 23 Sept 2017, 02:15 last edited by
              #9

              I had this problem after I acquired a android x86 tablet, I already used an ARM tablet. The solution for me was to uninstall Qt, then reinstall with android ARM and x86 tools. Hope this helps someone.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                StefanoF
                wrote on 23 Sept 2017, 12:22 last edited by
                #10

                Hi,

                I've the same problem on Debian 8 (64 bit), with Qt 5.9.1, Qt Creator 4.4.0 and Android Studio 2.3.3. I've removed and installed again Qt but the problem still continue.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  sierdzio
                  Moderators
                  wrote on 24 Sept 2017, 13:57 last edited by
                  #11

                  According to the bug report, this issue will be fixed in Qt Creator 4.5, so it will take some serious time.

                  (Z(:^

                  1 Reply Last reply
                  0
                  • F Offline
                    F Offline
                    Fredro
                    wrote on 27 Sept 2017, 13:41 last edited by Fredro
                    #12

                    My workaround was to remove the tools in the sdk and change back to version 25.0.3

                    if you need another version just change it out in the link below

                    http://dl-ssl.google.com/android/repository/tools_r25.0.3-windows.zip

                    S 1 Reply Last reply 27 Sept 2017, 14:54
                    4
                    • F Fredro
                      27 Sept 2017, 13:41

                      My workaround was to remove the tools in the sdk and change back to version 25.0.3

                      if you need another version just change it out in the link below

                      http://dl-ssl.google.com/android/repository/tools_r25.0.3-windows.zip

                      S Offline
                      S Offline
                      sierdzio
                      Moderators
                      wrote on 27 Sept 2017, 14:54 last edited by
                      #13

                      @Fredro said in Android build SDK not defined. Check Android settings. Qt 5.9.1, QtCreator 4.4.0, with Android Studio.:

                      My workaround was to remove the tools in the sdk and change back to version 25.0.3

                      if you need another version just change it out in the link below

                      http://dl-ssl.google.com/android/repository/tools_r25.0.3-windows.zip

                      Perfect, thanks for the info. I've managed to get a zip from a colleague, but an "official" link from Google is much better.

                      (Z(:^

                      1 Reply Last reply
                      0
                      • J Offline
                        J Offline
                        joaopagotto
                        wrote on 27 Sept 2017, 19:53 last edited by
                        #14

                        Temporary solution while the link with Android Studio and Qt Creator is not resolved. Hope to help, do not mark as resolved, as the Android Studio and Qt Creator integration should work. Because the latest versions are in Android Studio and support HAXM.

                        Android SDK r25.2.5
                        http://dl-ssl.google.com/android/repository/tools_r25.2.5-windows.zip
                        http://dl-ssl.google.com/android/repository/tools_r25.2.5-linux.zip
                        http://dl-ssl.google.com/android/repository/tools_r25.2.5-macosx.zip

                        Android NDK r15c
                        https://dl.google.com/android/repository/android-ndk-r15c-windows-x86.zip
                        https://dl.google.com/android/repository/android-ndk-r15c-windows-x86_64.zip
                        https://dl.google.com/android/repository/android-ndk-r15c-darwin-x86_64.zip
                        https://dl.google.com/android/repository/android-ndk-r15c-linux-x86_64.zip

                        Apache Ant 1.9.9
                        http://ftp.unicamp.br/pub/apache//ant/binaries/apache-ant-1.9.9-bin.zip

                        I 1 Reply Last reply 3 Oct 2017, 17:40
                        2
                        • F Offline
                          F Offline
                          FloMe
                          wrote on 2 Oct 2017, 01:32 last edited by
                          #15

                          I found a strange solution:

                          1. closed qtcreator

                          2. I edited the *pro.user file of my project.
                            there are some entries::
                            <value type="QString" key="BuildTargetSdk"></value>
                            <value type="QString" key="KeystoreLocation"></value>

                          3: I changed every occurence of
                          <value type="QString" key="BuildTargetSdk"></value>
                          to
                          <value type="QString" key="BuildTargetSdk">android-26</value>

                          (26 is my android sdk tools main version)

                          4: Now I can deploy again to my smartphone.

                          Strange is: the combobox "Android build Sdk" still is empty... doesn't matter now...

                          I 1 Reply Last reply 3 Oct 2017, 10:51
                          7
                          • S Offline
                            S Offline
                            sierdzio
                            Moderators
                            wrote on 2 Oct 2017, 04:26 last edited by
                            #16

                            @FloMe nice trick, thanks for sharing! :-)

                            (Z(:^

                            1 Reply Last reply
                            0
                            • I Offline
                              I Offline
                              ind1g1ne0us
                              wrote on 3 Oct 2017, 10:44 last edited by
                              #17

                              Seeing this same error with QT 5.9.1, QT Creator 4.4.0, Android SDK Tools 26.1.1

                              1 Reply Last reply
                              0
                              • F FloMe
                                2 Oct 2017, 01:32

                                I found a strange solution:

                                1. closed qtcreator

                                2. I edited the *pro.user file of my project.
                                  there are some entries::
                                  <value type="QString" key="BuildTargetSdk"></value>
                                  <value type="QString" key="KeystoreLocation"></value>

                                3: I changed every occurence of
                                <value type="QString" key="BuildTargetSdk"></value>
                                to
                                <value type="QString" key="BuildTargetSdk">android-26</value>

                                (26 is my android sdk tools main version)

                                4: Now I can deploy again to my smartphone.

                                Strange is: the combobox "Android build Sdk" still is empty... doesn't matter now...

                                I Offline
                                I Offline
                                ind1g1ne0us
                                wrote on 3 Oct 2017, 10:51 last edited by
                                #18

                                @FloMe Tried this, but didn't work for me at least. Still says SDK not found.

                                1 Reply Last reply
                                0
                                • J Offline
                                  J Offline
                                  joaopagotto
                                  wrote on 3 Oct 2017, 14:14 last edited by joaopagotto 10 Mar 2017, 14:16
                                  #19

                                  Open your ... \tools_r25.2.5-windows\tools\android.bat

                                  Install at least the version of the SDK API that you are using.

                                  alt text
                                  alt text

                                  1 Reply Last reply
                                  0
                                  • J joaopagotto
                                    27 Sept 2017, 19:53

                                    Temporary solution while the link with Android Studio and Qt Creator is not resolved. Hope to help, do not mark as resolved, as the Android Studio and Qt Creator integration should work. Because the latest versions are in Android Studio and support HAXM.

                                    Android SDK r25.2.5
                                    http://dl-ssl.google.com/android/repository/tools_r25.2.5-windows.zip
                                    http://dl-ssl.google.com/android/repository/tools_r25.2.5-linux.zip
                                    http://dl-ssl.google.com/android/repository/tools_r25.2.5-macosx.zip

                                    Android NDK r15c
                                    https://dl.google.com/android/repository/android-ndk-r15c-windows-x86.zip
                                    https://dl.google.com/android/repository/android-ndk-r15c-windows-x86_64.zip
                                    https://dl.google.com/android/repository/android-ndk-r15c-darwin-x86_64.zip
                                    https://dl.google.com/android/repository/android-ndk-r15c-linux-x86_64.zip

                                    Apache Ant 1.9.9
                                    http://ftp.unicamp.br/pub/apache//ant/binaries/apache-ant-1.9.9-bin.zip

                                    I Offline
                                    I Offline
                                    ind1g1ne0us
                                    wrote on 3 Oct 2017, 17:40 last edited by
                                    #20

                                    @joaopagotto Yeah thanks for your reply, I got it working earlier already, by downloading the last release of the SDK 25 version, 25.0.3. Didn't have to update the tools, the latest tools installed by Android Studio work just fine.

                                    R 1 Reply Last reply 6 Oct 2017, 11:00
                                    0
                                    • I ind1g1ne0us
                                      3 Oct 2017, 17:40

                                      @joaopagotto Yeah thanks for your reply, I got it working earlier already, by downloading the last release of the SDK 25 version, 25.0.3. Didn't have to update the tools, the latest tools installed by Android Studio work just fine.

                                      R Offline
                                      R Offline
                                      raven-worx
                                      Moderators
                                      wrote on 6 Oct 2017, 11:00 last edited by raven-worx 10 Jun 2017, 11:01
                                      #21

                                      @ind1g1ne0us
                                      seems like this is now already fixed with QtCreator 4.4.1/Qt 5.9.2

                                      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                                      If you have a question please use the forum so others can benefit from the solution in the future

                                      J 1 Reply Last reply 6 Oct 2017, 16:43
                                      2
                                      • R raven-worx
                                        6 Oct 2017, 11:00

                                        @ind1g1ne0us
                                        seems like this is now already fixed with QtCreator 4.4.1/Qt 5.9.2

                                        J Offline
                                        J Offline
                                        joaopagotto
                                        wrote on 6 Oct 2017, 16:43 last edited by
                                        #22

                                        @raven-worx Yes, in this version works ! =D

                                        1 Reply Last reply
                                        0
                                        • S Offline
                                          S Offline
                                          Serieus_developer
                                          wrote on 8 Oct 2017, 23:33 last edited by
                                          #23

                                          hello, am i the only one who still facing the same issue ine 4.4.1 ? this is pretty strange, i also have qt5.9.1 and i've tread many android tools version mentioned above,
                                          any update?

                                          1 Reply Last reply
                                          1

                                          13/33

                                          27 Sept 2017, 14:54

                                          • Login

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