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

Android SDK missing tools

Scheduled Pinned Locked Moved Solved Mobile and Embedded
10 Posts 6 Posters 10.8k Views 3 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.
  • tom8oeT Offline
    tom8oeT Offline
    tom8oe
    wrote on last edited by
    #1

    Is anyone else experiencing this error?

    Cannot find template directory ~/Android/Sdk/tools/templates/gradle/wrapper
    08:22:26: The process "~/Qt/5.8/android_armv7/bin/androiddeployqt" exited with code 3.
    

    It appears the latest Android SDK changes the contents of ~/Android/Sdk/tools/ directory considerably. If I copy back the tools directory from another PC where I have not updated Android Studio/SDK my Qt Android builds work. Also note that when my Android SDK is in the non-functional configuration I cannot select the android build SDK on the Project Kit configuration screen. QtCreator appears to expect android tooling in a specific location and it has moved or been removed from the SDK. The other possibility is I'm losing my mind and forgetting to install a requirement. :-/

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You mind is likely at the right place.

      Google as modified the layout of it's SDK/NDK in past so you may have found something new. You should probably check the bug report system so see if there's already something about for the Qt Creator project. If not, please consider opening a report with all the details you have about the changes.

      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
      • tom8oeT Offline
        tom8oeT Offline
        tom8oe
        wrote on last edited by
        #3

        Thanks @SGaist! Good Advice. Looks like bugs have been filed.

        https://bugreports.qt.io/browse/QTBUG-59236

        1 Reply Last reply
        2
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Thanks for the link !

          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
          • W Offline
            W Offline
            wawan
            wrote on last edited by
            #5

            Just reinstall qt/android on another machine. Having the same issue.
            Does there is some hack to make it works? (didn't see anything in the bug report)

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @tom8oe wrote that he copied the tools folder from another working install and it worked for him.

              Which version of the SDK do you have ?

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

                It looks like the SDK Command line tools 25.2.3 available on googles site contains the necessary tools. Look all the way at the bottom of the page: https://developer.android.com/studio/index.html .

                If Google changes the webpage you can probably still access it via the download link: https://dl.google.com/android/repository/tools_r25.2.3-linux.zip
                I was able to change the version number in the URL and download older versions not displayed on the web page.

                I overwrote my Android/SDK/tools directory with the tools from that download (I'm on Linux not sure if there are platform variations here) and everything worked. Also I got a new update from Android Studio today SDK Tools 25.2.5 and when that installed it appears to still contain the necessary tools. Maybe the earlier update was incomplete.

                ekkescornerE M 2 Replies Last reply
                5
                • tom8oeT tom8oe

                  It looks like the SDK Command line tools 25.2.3 available on googles site contains the necessary tools. Look all the way at the bottom of the page: https://developer.android.com/studio/index.html .

                  If Google changes the webpage you can probably still access it via the download link: https://dl.google.com/android/repository/tools_r25.2.3-linux.zip
                  I was able to change the version number in the URL and download older versions not displayed on the web page.

                  I overwrote my Android/SDK/tools directory with the tools from that download (I'm on Linux not sure if there are platform variations here) and everything worked. Also I got a new update from Android Studio today SDK Tools 25.2.5 and when that installed it appears to still contain the necessary tools. Maybe the earlier update was incomplete.

                  ekkescornerE Offline
                  ekkescornerE Offline
                  ekkescorner
                  Qt Champions 2016
                  wrote on last edited by
                  #8

                  @tom8oe from QTBUG-59236 it seems 25.2.5 is the latest working with Qt.
                  there are also download links for macOS, Windows, Linux

                  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
                  2
                  • tom8oeT tom8oe

                    It looks like the SDK Command line tools 25.2.3 available on googles site contains the necessary tools. Look all the way at the bottom of the page: https://developer.android.com/studio/index.html .

                    If Google changes the webpage you can probably still access it via the download link: https://dl.google.com/android/repository/tools_r25.2.3-linux.zip
                    I was able to change the version number in the URL and download older versions not displayed on the web page.

                    I overwrote my Android/SDK/tools directory with the tools from that download (I'm on Linux not sure if there are platform variations here) and everything worked. Also I got a new update from Android Studio today SDK Tools 25.2.5 and when that installed it appears to still contain the necessary tools. Maybe the earlier update was incomplete.

                    M Offline
                    M Offline
                    myk321
                    wrote on last edited by
                    #9

                    @tom8oe, thanks this worked for me, although I only copied across the "templates" folder from the 25.2.3 SDK to, in my case ~/Android/Sdk/tools.

                    1 Reply Last reply
                    0
                    • P Offline
                      P Offline
                      pgmQt
                      wrote on last edited by
                      #10

                      Hi ,

                      I have re-installed Qt5.8 and android-sdk-linux tools r25.2.3 as described in the earlier postings.
                      In my project I need to upgrade from supporting Android 6.0 to Android 7.0 (Nougat) since my Tablet device has been updated to Nougat.
                      Inside the Qt Creator, I am getting a problem when trying to edit the Manifest file. It does not give me a choice to select Android 7.0 when selecting the minSdkVersion/targetSdkVersion. If I manually set it to version 24, Qt Creator changes it to "Not Set".

                      Am I missing something here ? How do I get Qt Creator to select Android 7.0 in the settings ? My Build Settings are set to Android Build SDK android-25
                      .

                      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