Qt Creator Android error “Platform SDK installed” –
I am developing a Qt cross-platform application for Android. I recently updated the Qt Creator and installed a new version of Qt. I am using Qt Creator version 4.5.0. I have upgraded to version 5.10 of QT. It is installed on Ubuntu 16.04.
Next link Start QT installation.
I always get an error message that Android installations have an error in Qt Creator->Tools->Options->Devices->Android.
Due to the above problem, I cannot create an Android application.
I recently updated my android sdk, I can build and run test programs from android studio which indicate that the SDK installation is working properly. I am using the tools from the Android 26.1.1 SDK. Check the images below the screen.
Android SDK creation tools are installed.
Installing Android SDk platforms
I’ve already passed several links on the Stack Overflow and the QT forum, all of which suggest downgrading the Android SDK tools (due to a known QT bug), but none of the solutions work for me. I know there are some known bugs when creating an Android application with QT 5.9 and Qt Creator version 4.0. I think this problem is solved because the same configuration works fine on Windows 10.
QT Creator lists all available QT Android Build SDK
available QT Android installation error
Please help if anyone here can solve the same question.
How can I solve this problem?
I just found this bug report that says this in the comments.
The native sdkmanager tool cannot update packages on Windows and fails with JDK 9, and these problems are also reflected in Qt Creator.
I just tried installing the JDK 8 and changing the path, and after reopening the settings menu, it worked!
After many difficulties I can solve this problem, thanks to Mohammad Kanan, Vesafari, whose answer brought me closer to the answer, The current problem is solved by the following steps. This may be helpful to anyone with the same problem on Ubuntu or other platforms.
- The first step (like most answers) is to go from the 9th to the 8th JDK. I am using Java version 1.8.0_152.
- Step 1 didn’t help me (Qt Creator keeps some settings), so I uninstalled the full installation of Qt 5.8,5.9,5.10 (using the Qt Maintainace tool) and the 2 following links
Remove Qt completely, remove Qt Creator.
and restarted the setup. Your problem can be solved at this point.
- Step 2 didn’t help in my case either, QT Creator always saves some settings and you have to reset the settings of Qt Creator. This can be done by deleting the data in this folder.
~/.config/QtProject ~/.config/Qt file ~/.config/QtProject.conf
The path may be different for different systems and operating systems. In this case, the following links will help you.
Frequently Asked Questions
Stack Overflow Parameters Qt 1
Stack overflow parameters Qt 2
I can now create and run Android applications.
I’ll use the answering machine to show you how it works for me, last note: I’m not installing NDK 16… Try removing it from Android Manager while installing (for Qt) NDK 10e separately (this was already Qt’s recommendation).
And the configuration page Qt:
The installed SDK platform requires the sdkmanager command.
If you have the platform SDK installed, try running the sdkmanager command directly.
This is $ANDROID_SDK_ROOT/tools/bin/sdkmanager. On my Linux system, it was in $HOME/Android/Sdk/tools/bin/sdkmanager.
In general, the problem is that
- You must install the JDK 8 correctly (note that the JDK 9, JDK 10 and JDK 11 will not work!).
If you have the new JDK installed, you will need to upgrade to JDK 8. Either OpenJDK or Oracle will work, but it must be JDK 8.
Work on the remaining issues with the sdkmanager command line, and when this is done, you should make Qt Creator happy again.
Solution no. 5:
, I had the same problem with Debian Buster (sid) using QtCreator 4.6.2 with Qt5.10.1.
Go to ~/.config and clear all qtcreator settings, then re-run jdk.8
, then Android SDK paths, then NDK.
Then it works, and the non-integrated SDK platform generates no errors.
Out of interest, I tried deleting all ~/.config/qtcreator* and then giving up jdk10. It doesn’t work like it used to.
Then when you switch to jdk8, it still doesn’t work.
You need to close QtCreator, remove all configurations, reopen and select again, then it will work.
Solution no. 6:
There is no need to remove the qt settings. Just install the latest version of jdk 8 from here -> http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html.
Then select the location of the jdk in the options and then select the sdk manager tab at the bottom. Click the Update Installed button and a window will appear with a list of licenses you must accept.
The problem starts with jdk 9. For some strange reason it doesn’t show the license agreements and doesn’t go beyond that point. The support sticks to the jdk8.
Solution no. 7:
In my case, the red crosses are placed in front of the
SDK tools. Installation of an SDK for platform
To solve this problem, I had to download the android sdk tools from https://androidsdkoffline.blogspot.com/p/android-sdk-tools.html.
I put the extracted tool file in the sdk folder.
My installation only works with open-jdk-8
Now I can install qml applications on S10.
Solution no. 8:
I just had the same symptoms I had during the surgery. Unlike the OP, I used Qt Creator 4.8.0 as expected in the Ubuntu 19.10 repositories.
The relevant part of the Qt Creator self-test list is :
✓ The SDK tools are installed.
SDK platformX is installed.
Another symptom was that the SDK Manager tab at the bottom of the page displayed this message:
The SDK Manager is not available in the current version of the SDK Tools. Use the native SDK manager.
Cause and remedy
The reason is the wrong version of the SDK tools. This invalid version is detected (SDK tools installed.) but cannot be used by Qt Creator to determine which SDK platform is installed or to install new ones.
In my case, I just downloaded the latest version, which is listed as commandlinetools-linux-*_latest.zip on the Android Studio download page. This version includes changes that are not backwards compatible with the interface of earlier versions expected by Qt Creator. This new package is really different: it has a different name (command tools vs. SDK tools), it expects to be in a different place, etc.
To resolve this issue, download and install Android SDK Tools 26.1.1 (rev 4333796) as follows, obviously specifying your own Android SDK directory :
This eliminated all the symptoms described above.
Solution no. 9:
The proposed solutions did not work for me.
I already had Java 8 and with Qt 5.12 the latest SDK installed and the NDK should work (should work with Qt 5.9).
After hours of tinkering, reinstalling Qt and Java, deleting configurations, loading old NDKs and everything else it still didn’t work.
My mistake was to decompress the SDK and NDK with superuser privileges to a read-only location. After giving the folder to my regular user, the creator found everything and it worked as expected.
Also check that the user running Qt Creator has the folder containing the SDK and NDK. This is a quick check that can prevent you from deleting your settings.
Edit: In August 2019, I added a patch to Qt Creator that checks this particular case and reports the error accordingly.
Solution no. 10:
Well, after hours of effort, I finally figured out how to fix the problem.
- Download and use Android NDK r10e separately (do not install it through the SDK manager)
- Download and use the Android SDK without Android Studio (download Android tools from the official website) Qt Preferences will install all necessary packages (compilation tools, platform tools, sdk tools, android-28 platform)
- Install and use Java JDK 8 (not newer)
Please note that the installation of SDK packages through Android Studio is not recognized by Qt
qt creator android setup, error install platform sdk, android sdk manager download, qt android emulator, qt android visual studio, qt java settings have errors, what is android sdk, qt 5.12 android