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 build failed with Android Studio 2.3
QtWS25 Last Chance

Android build failed with Android Studio 2.3

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 4 Posters 1.7k 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.
  • T Offline
    T Offline
    topse
    wrote on last edited by
    #1

    Hi,
    when building for Android I get the following error:

    Cannot find template directory C:/Users/topse/AppData/Local/Android/sdk/tools/templates/gradle/wrapper
    12:47:57: Der Prozess "C:\Qt\5.8\android_armv7\bin\androiddeployqt.exe" wurde mit dem Rückgabewert 3 beendet.
    

    And: yes the message is right... gradle has been moved to c:\Program Files\Android Studio\somewhere...

    Is it possible, to set the path for Qt somewhere?

    Best Regards,
    Tobias

    T 1 Reply Last reply
    1
    • T topse

      Hi,
      when building for Android I get the following error:

      Cannot find template directory C:/Users/topse/AppData/Local/Android/sdk/tools/templates/gradle/wrapper
      12:47:57: Der Prozess "C:\Qt\5.8\android_armv7\bin\androiddeployqt.exe" wurde mit dem Rückgabewert 3 beendet.
      

      And: yes the message is right... gradle has been moved to c:\Program Files\Android Studio\somewhere...

      Is it possible, to set the path for Qt somewhere?

      Best Regards,
      Tobias

      T Offline
      T Offline
      topse
      wrote on last edited by topse
      #2

      @topse

      Answer to myself:
      After creating the missing folder and leave it empty -- the Qt Creator automatically downloads gradle and installs it somewhere. After that it works... little bug in Creator?

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

        Hi,

        Not a bug per se. The Android folks have the nasty habit of re-organizing stuff in their SDK/NDK from time to time without notice.

        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
        • T topse

          @topse

          Answer to myself:
          After creating the missing folder and leave it empty -- the Qt Creator automatically downloads gradle and installs it somewhere. After that it works... little bug in Creator?

          N Offline
          N Offline
          Nilanj
          wrote on last edited by
          #4

          @topse as you say i created missing folder still this is not working

          this error comes

          Can't open file: C:/Users/Bwrl/Documents/build-andro-Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_1-Debug/android-build/gradle/wrapper/gradle-wrapper.properties for writing

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lqsa
            wrote on last edited by
            #5

            It is a problem with newest Android SDK Tools. If installs the 25.2.5, it works.

            On stackoverflow talk about this problem: https://stackoverflow.com/questions/42754878/qt-creator-wont-list-any-available-android-build-sdks#42811774

            There appears the link to download this SDK Tools: https://dl.google.com/android/repository/tools_r25.2.5-windows.zip

            After download the zip, enter on the folder where the SDK is installed and delete the tools folder. Unzip it. It creates a new tools folder with the 25.2.5 tools.

            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