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

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 33.8k Views 6 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.
  • I Offline
    I Offline
    ind1g1ne0us
    wrote on 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

      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 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
      • joaopagottoJ Offline
        joaopagottoJ Offline
        joaopagotto
        wrote on last edited by joaopagotto
        #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
        • joaopagottoJ joaopagotto

          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 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.

          raven-worxR 1 Reply Last reply
          0
          • I ind1g1ne0us

            @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.

            raven-worxR Offline
            raven-worxR Offline
            raven-worx
            Moderators
            wrote on last edited by raven-worx
            #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

            joaopagottoJ 1 Reply Last reply
            2
            • raven-worxR raven-worx

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

              joaopagottoJ Offline
              joaopagottoJ Offline
              joaopagotto
              wrote on 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 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
                • C Offline
                  C Offline
                  Cdr_sfy
                  wrote on last edited by
                  #24

                  Hello. Issue not resolved on Windows, with QT 5.9.2, QT Creator 4.4.1, Android SDK Tools 26.1.1.

                  S 1 Reply Last reply
                  0
                  • C Cdr_sfy

                    Hello. Issue not resolved on Windows, with QT 5.9.2, QT Creator 4.4.1, Android SDK Tools 26.1.1.

                    S Offline
                    S Offline
                    Serieus_developer
                    wrote on last edited by
                    #25

                    @Cdr_sfy same here as you

                    1 Reply Last reply
                    0
                    • joaopagottoJ Offline
                      joaopagottoJ Offline
                      joaopagotto
                      wrote on last edited by
                      #26

                      Try delete folder C:\Users\user\AppData\Local\QtProject and uninstall all Qt, and install new version of Qt.

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        al.itdls
                        wrote on last edited by
                        #27

                        I reproduce this problem on Win 10, Qt 5.9.2, QtCreator 4.4.1. But on macOS I haven't got problem. I tried to reinstall Qt, but didn't have any result. Can somebody help me? Thank you!

                        1 Reply Last reply
                        0
                        • C Offline
                          C Offline
                          Cdr_sfy
                          wrote on last edited by
                          #28

                          Same problem with Qt 5.9.2, Qt Creator 4.5.0 beta1, on Windows 7 or Linux Mint.

                          AnatolySA 1 Reply Last reply
                          0
                          • C Cdr_sfy

                            Same problem with Qt 5.9.2, Qt Creator 4.5.0 beta1, on Windows 7 or Linux Mint.

                            AnatolySA Offline
                            AnatolySA Offline
                            AnatolyS
                            wrote on last edited by
                            #29

                            @Cdr_sfy check this https://forum.qt.io/topic/83930/android-build-sdk-not-defined-check-android-settings/6

                            C 1 Reply Last reply
                            0
                            • AnatolySA AnatolyS

                              @Cdr_sfy check this https://forum.qt.io/topic/83930/android-build-sdk-not-defined-check-android-settings/6

                              C Offline
                              C Offline
                              Cdr_sfy
                              wrote on last edited by
                              #30

                              @AnatolyS Thank you for this help Anatoly :-)
                              The problem was due to my JDK 9 installation. Removing it, and going back to JDK 8, all is working well now !

                              AnatolySA 1 Reply Last reply
                              1
                              • C Cdr_sfy

                                @AnatolyS Thank you for this help Anatoly :-)
                                The problem was due to my JDK 9 installation. Removing it, and going back to JDK 8, all is working well now !

                                AnatolySA Offline
                                AnatolySA Offline
                                AnatolyS
                                wrote on last edited by
                                #31

                                @Cdr_sfy perfect, nice to hear that you have solved the problem

                                1 Reply Last reply
                                1
                                • A Offline
                                  A Offline
                                  andreajones
                                  Banned
                                  wrote on last edited by
                                  #32
                                  This post is deleted!
                                  1 Reply Last reply
                                  0
                                  • S Offline
                                    S Offline
                                    seyed
                                    wrote on last edited by
                                    #33

                                    OK, after many hours try out I finally find out how you can fix it.

                                    • Download and use Android NDK r10e separately (don't install it through SDK Manager)
                                    • Download and use Android SDK without Android Studio (download android tools from official site) Qt Preferences will installs all needed packages (build tools , platform tools, sdk tools, platform android-28)
                                    • Install and use Java JDK 8 (not newer)

                                    Please note that installing SDK packages through Android Studio will not be detectable by Qt

                                    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