当前位置:   article > 正文

运行sdkmanager --update报错java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema_com.android.sdklib.tool.sdkmanager.sdkmanagercli 时

com.android.sdklib.tool.sdkmanager.sdkmanagercli 时 linkageerror java.lang

关于运行:sdkmanager --update报错的原因是因为本地安装的jdk版本太高,安装jdk1.8版本就没问题了

  1. Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
  2. at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156)
  3. at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)
  4. at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81)
  5. at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73)
  6. at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48)
  7. Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
  8. at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
  9. at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
  10. at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
  11. ... 5 more
本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/在线问答5/article/detail/840822
推荐阅读
相关标签
  

闽ICP备14008679号