I am developing Qt Cross platform application for Android, recently i have updated Qt creator and Installed new Qt version. I am using \'Qt Creator version 4.5.0\'
In my case I had red crosses for SDK tools installed. and for Platform SDK installed.
To resolve it I needed to download android sdk tools from https://androidsdkoffline.blogspot.com/p/android-sdk-tools.html
file was tools_r25.2.5-linux.zip
I placed extracted tools folder in sdk folder. My setup now works only with open-jdk-8 Now I can deploy qml apps on my S10
Linux:
The proposed solutions did not work for me.
I already had Java 8 and with Qt 5.12 installed the latest SDK and NDK are supposed to work (should work since Qt 5.9).
After hours of fiddling, reinstalling Qt and Java, removing configs, downloading older NDKs and all, it still did not work.
My mistake was that I unpacked SDK and NDK as root into a read-only location for the user. After chown
ing the folder to the my normal user, Creator found everything and worked as expected.
So also check, if the user running Qt Creator owns the folder containing SDK and NDK. It's a quick check that might prevent you from deleting your configs. :)
Edit: In August 2019, I added a patch to Qt Creator, checking for this partiicular case and reporting an error accordingly. https://code.qt.io/cgit/qt-creator/qt-creator.git/commit/?id=4ca3bd4d0f336f7055080e78849c0607ba99843c
To add on to the accepted answer of needing JDK 8 - if you already have a newer version of Java running, you can easily install a standalone version 8 alongside it. Use the installer from https://adoptopenjdk.net/ and select v8.0. Make sure to update your preferences to point to the Java 8 and things should work.
OK, after many many hours try-out I finally find out how we can fix it.
Please note that installing SDK packages through Android Studio will not be detectable by Qt
"Platform SDK installed" requires a working a 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 this was in $HOME/Android/Sdk/tools/bin/sdkmanager
.
The typically issue is
If you have installed a newer JDK you will need to downgrade to JDK 8. Either OpenJDK or Oracle will work, but it needs to be JDK 8.
Work thru any remaining issues with the sdkmanager
command line, then, once that's done, you should find Qt Creator to be happy again.
References: