How Exception in thread “main” java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema in flutter error occurs?
I am trying to run flutter doctor and flutter doctor saying to accept license when I ran flutter doctor –android-licenses it gives a java error in a flutter.
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:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 5 more
How to Solve Exception in thread “main” java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema in flutter error?
- How to Solve Exception in thread “main” java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema in flutter error?
to Solve Exception in thread “main” java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema in flutter error Just Install Android SDK Command-line tools from Android SDK Manager is solved my error. This solution is worked for me. Open Tools > SDK Manager From the left choose, Appearance & Behavior > System Settings > Android SDK Select SDK Tools from the top menu Check Android SDK Command-line tools and click 'apply'.
- Exception in thread “main” java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema in flutter
to Solve Exception in thread “main” java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema in flutter error Just Install Android SDK Command-line tools from Android SDK Manager is solved my error. This solution is worked for me. Open Tools > SDK Manager From the left choose, Appearance & Behavior > System Settings > Android SDK Select SDK Tools from the top menu Check Android SDK Command-line tools and click 'apply'.
Solution 1 : Install Android SDK Command-line tools
Just Install Android SDK Command-line tools from Android SDK Manager is solved my error.
- Open Tools > SDK Manager
- From the left choose, Appearance & Behavior > System Settings > Android SDK
- Select SDK Tools from the top menu
- Check Android SDK Command-line tools and click ‘apply’.
No comments:
Post a Comment
Thanks for your comments