You are not logged in.
Hello
After install android sdk to use it in Apache Cordova, I used this command "cordova requirements" and I got the following error message. please advise.
Java JDK: installed 24.0.1
Android SDK: installed true
Android target: not installed
Command failed with exit code 1: avdmanager list target
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.AvdManagerCli.run(AvdManagerCli.java:213)
at com.android.sdklib.tool.AvdManagerCli.main(AvdManagerCli.java:200)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:580)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:490)
... 5 more
Gradle: not installed
Could not find an installed version of Gradle either in Android Studio,
or on your system to install the gradle wrapper. Please include gradle
in your path, or install Android StudioLast edited by HossamMaghrabi (2025-07-17 07:27:15)
Offline
Gradle: not installed
It says there what you need.
How did you install the sdk? There's a package in AUR but I'm not sure if it includes gradle: https://aur.archlinux.org/packages/android-sdk
But gradle is available: https://archlinux.org/packages/extra/any/gradle/
If gradle is installed, have you checked if it is in your PATH?
Offline
I am installed the sdk. I am asking about the following error
Android target: not installed
Command failed with exit code 1: avdmanager list target
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.AvdManagerCli.run(AvdManagerCli.java:213)
at com.android.sdklib.tool.AvdManagerCli.main(AvdManagerCli.java:200)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:580)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:490)
... 5 more
Last edited by HossamMaghrabi (2025-07-18 05:50:32)
Offline
I sent you the link: https://aur.archlinux.org/packages/android-sdk
Did you try the workaround solution there?
Offline
I already installed Android SDK and this is appear in the first post I sent. following is the message,
Java JDK: installed 24.0.1
Android SDK: installed true
Last edited by HossamMaghrabi (2025-07-18 16:07:35)
Offline
You are not answering the question. The question is did you try the workaround solution discussed on that page? There's a solution suggested there that is exactly your problem so you obviously hasn't been reading what is on that page.
Last edited by d_fajardo (2025-07-18 17:01:36)
Offline
Thank. I will check the page many thanks.
Offline
Mod note: Moving to AUR Issues.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline