Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt Creator 4.12.1 Android Setup



  • 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?



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



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


Log in to reply