Solved Android SDK installation is missing necessary packages.
-
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.
-
@klausf Silly question: did you install the Android platform for Qt?
-
hi @klausf
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. -
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 -
Hello,
after another install from scratch everything's fine now. This subject can be closed.
Thanks. -
@klausf said in Android SDK installation is missing necessary packages.:
This subject can be closed
You need to mark your post as solved! Thanks.
-
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 problemD:\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
-
@Hai-Long-Tran, this absolutely worked for me. Kubuntu 18.04 LTS
-
This post is deleted!