Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator 4.12.1 Android Setup
QtWS25 Last Chance

Qt Creator 4.12.1 Android Setup

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
3 Posts 2 Posters 464 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.
  • B Offline
    B Offline
    bernerdad
    wrote on last edited by
    #1

    Hi. I've installed Qt 5.15.0 using the online installer for macOS. Following the instructions provided in https://doc.qt.io/qtcreator/creator-developing-android.html#specifying-android-device-settings, I clicked the refresh button to automatically download and install the appropriate Android SDK and NDK. This worked great... except that the path Qt Creator installs the Android SDK and NDK to is /Users/[my account]/Library/Application Support/QtProject/Android/sdk/ndk/21.1.6352462. After the install of the SDK/NDK completes, Qt Creator shows an error X-mark beside "Default Android NDK installed into a path without spaces". This setup process also sets the ANDROID_* system environment variables to point to this folder. I then cannot build any Android projects in Qt Creator due to the space in the SDK/NDK install folder. Is there some way to get Qt Creator to install the SDK/NDK to a different folder of my choosing so I can fix this "space in the path" issue?

    Pablo J. RoginaP 1 Reply Last reply
    0
    • B bernerdad

      Hi. I've installed Qt 5.15.0 using the online installer for macOS. Following the instructions provided in https://doc.qt.io/qtcreator/creator-developing-android.html#specifying-android-device-settings, I clicked the refresh button to automatically download and install the appropriate Android SDK and NDK. This worked great... except that the path Qt Creator installs the Android SDK and NDK to is /Users/[my account]/Library/Application Support/QtProject/Android/sdk/ndk/21.1.6352462. After the install of the SDK/NDK completes, Qt Creator shows an error X-mark beside "Default Android NDK installed into a path without spaces". This setup process also sets the ANDROID_* system environment variables to point to this folder. I then cannot build any Android projects in Qt Creator due to the space in the SDK/NDK install folder. Is there some way to get Qt Creator to install the SDK/NDK to a different folder of my choosing so I can fix this "space in the path" issue?

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @bernerdad what I did in Linux is to set the ANDROID_SDK_ROOT environment variable to some location I like before running Qt Creator for the first time. So then under Devices -> Android the value of such variable was picked automatically.

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

        I managed to get this resolved by deleting the SDK/NDK install from /Users/[my account]/Library/Application Support, then going back into the Android setup in Qt Creator and setting the Android SDK location editbox to a path of my choosing BEFORE clicking the refresh button. All is well in Qt land for me once again.

        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