Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Android SDK installation is missing necessary packages.
Is this still an issue ? I run into all of the described hurdles above with Qt Creator 4.9.2 Based on Qt 5.12.4 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit) and Android Studio Version 3.4.2. on openSuse Leap 15.1 and I have tried all the suggested solutions to no avail.
Is there a solution to this ?
Thanks in advance.
Hi and welcome to devnet,
What exactly did you install ?
How did you install it ?
Hi, I have installed Qt Creator and Android Studio using their installation wizards and not changing any of the suggested installation folders. Both applications work.
What it boils down to is shown in the screenshot, under Creator -> Tools -> Options -> Devices -> Android I get the red cross for "Platform SDK installed". When I select "yes" for downloading the missing packages nothing happens. All the available Android flavors are present in the /home/user1/Android/Sdk/platforms/ folder.
As you can see in the screenshot now I'm using /usr/lib64/jvm/java-11-openjdk-11, but I have tried the downgrade to the previously suggested java version and it did not help.
I'm new to Qt and I hope I do not miss something obvious.
Tom_H last edited by
@klausf Don't use Qt Creator to manage the Android SDK. Use Android Studio. My suggestion:
- Uninstall everything
- Install Android Studio
- Use Android Studio to install the Android SDK (and NDK)
- Install Qt
The Qt installation will detect the Android SDK. That's the way I do it. Good luck.
Hi, Tom_H, thanks for your suggestion. Indeed, my sequence of installation was Creator first and Android studio second.
So I followed your advice and installed Android Studio along with the SDKs first, and after that I've installed Qt Creator. Unfortunately to no avail, please see screenshot.
Tom_H last edited by
@klausf Silly question: did you install the Android platform for Qt?
in my past I had only issues with android studio as the source tor the android kits.
It messes with path's & linkings.
That's why I switch to the command line tools a long while ago. Much less heavy on the HD too!
You get those rather simply by clicking on the download icon (green arrow pointing down) in the android settings of QtC
Hi, Tom_H, I sure did install those, please see screenshot.
J.Hilk, I have tried this, too. The click on the little green arrow takes me to the Android Developer page where I can choose to install Android Studio or just the Android command line tools only ( under MacOS this might be different ).
Anyway, with the installation of Android Studio I get everything needed in its correct place/folder and I get everything ticked off in green.
Except for the red cross at "Platform SDK installed" although those SDKs are right there in the selected folder ( /home/user1/Android/Sdk ).
Would you please let me know whats inside your folder for the Android SDK location ( in your screenshot: what's inside "Android SDK location: /Library/Android" ) ? Thank you.
Ibrahim last edited by Ibrahim
As far as I know Android SDK needs JDK 8. It is not working with JDK 11.
Edit: There is JDK 8 in Android Studio path. Example : android-studio/jre
after another install from scratch everything's fine now. This subject can be closed.
Pablo J. Rogina last edited by
This subject can be closed
You need to mark your post as solved! Thanks.
Hai Long Tran last edited by
i have the same problems with a big red X on "Platform SDK installed" line, and a truncated version of this error msg when i try to install missing packages. (using windows 10)
i found out that the error msg is because qt creator was trying to run sdkmanager to install the missing package.
tried to run it myself in cmd, getting this error which is due to removal of support in jdk for java.se.ee after jdk11+
downgraded to jdk 8 and it works now.
in case it helps anyone else stumbling on this same problem
D:\SDK\Android\sdk\tools\bin>sdkmanager.bat Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156) at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75) at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48) Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ... 5 more
QtProgrammerJosh last edited by
@Hai-Long-Tran, this absolutely worked for me. Kubuntu 18.04 LTS
dhwanipatil Banned last edited by dhwanipatil
This post is deleted!