./Android/Sdk/tools/bin/sdkmanager --update Exception in thread “main” java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema at com.android.repository.api.SchemaModule
S
c
h
e
m
a
M
o
d
u
l
e
V
e
r
s
i
o
n
.
<
i
n
i
t
>
(
S
c
h
e
m
a
M
o
d
u
l
e
.
j
a
v
a
:
156
)
a
t
c
o
m
.
a
n
d
r
o
i
d
.
r
e
p
o
s
i
t
o
r
y
.
a
p
i
.
S
c
h
e
m
a
M
o
d
u
l
e
.
<
i
n
i
t
>
(
S
c
h
e
m
a
M
o
d
u
l
e
.
j
a
v
a
:
75
)
a
t
c
o
m
.
a
n
d
r
o
i
d
.
s
d
k
l
i
b
.
r
e
p
o
s
i
t
o
r
y
.
A
n
d
r
o
i
d
S
d
k
H
a
n
d
l
e
r
.
<
c
l
i
n
i
t
>
(
A
n
d
r
o
i
d
S
d
k
H
a
n
d
l
e
r
.
j
a
v
a
:
81
)
a
t
c
o
m
.
a
n
d
r
o
i
d
.
s
d
k
l
i
b
.
t
o
o
l
.
s
d
k
m
a
n
a
g
e
r
.
S
d
k
M
a
n
a
g
e
r
C
l
i
.
m
a
i
n
(
S
d
k
M
a
n
a
g
e
r
C
l
i
.
j
a
v
a
:
73
)
a
t
c
o
m
.
a
n
d
r
o
i
d
.
s
d
k
l
i
b
.
t
o
o
l
.
s
d
k
m
a
n
a
g
e
r
.
S
d
k
M
a
n
a
g
e
r
C
l
i
.
m
a
i
n
(
S
d
k
M
a
n
a
g
e
r
C
l
i
.
j
a
v
a
:
48
)
C
a
u
s
e
d
b
y
:
j
a
v
a
.
l
a
n
g
.
C
l
a
s
s
N
o
t
F
o
u
n
d
E
x
c
e
p
t
i
o
n
:
j
a
v
a
x
.
x
m
l
.
b
i
n
d
.
a
n
n
o
t
a
t
i
o
n
.
X
m
l
S
c
h
e
m
a
a
t
j
a
v
a
.
b
a
s
e
/
j
d
k
.
i
n
t
e
r
n
a
l
.
l
o
a
d
e
r
.
B
u
i
l
t
i
n
C
l
a
s
s
L
o
a
d
e
r
.
l
o
a
d
C
l
a
s
s
(
B
u
i
l
t
i
n
C
l
a
s
s
L
o
a
d
e
r
.
j
a
v
a
:
636
)
a
t
j
a
v
a
.
b
a
s
e
/
j
d
k
.
i
n
t
e
r
n
a
l
.
l
o
a
d
e
r
.
C
l
a
s
s
L
o
a
d
e
r
s
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:636) at java.base/jdk.internal.loader.ClassLoaders
SchemaModuleVersion.<init>(SchemaModule.java:156)atcom.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)atcom.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81)atcom.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73)atcom.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48)Causedby:java.lang.ClassNotFoundException:javax.xml.bind.annotation.XmlSchemaatjava.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:636)atjava.base/jdk.internal.loader.ClassLoadersAppClassLoader.loadClass(ClassLoaders.java:182) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519) … 5 more
./Android/Sdk/tools/bin/sdkmanager --licenses Exception in thread “main” java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema at com.android.repository.api.SchemaModule
S
c
h
e
m
a
M
o
d
u
l
e
V
e
r
s
i
o
n
.
<
i
n
i
t
>
(
S
c
h
e
m
a
M
o
d
u
l
e
.
j
a
v
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L
o
a
d
e
r
s
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:636) at java.base/jdk.internal.loader.ClassLoaders
SchemaModuleVersion.<init>(SchemaModule.java:156)atcom.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)atcom.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81)atcom.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73)atcom.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48)Causedby:java.lang.ClassNotFoundException:javax.xml.bind.annotation.XmlSchemaatjava.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:636)atjava.base/jdk.internal.loader.ClassLoadersAppClassLoader.loadClass(ClassLoaders.java:182) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519) … 5 more ./Android/Sdk/tools/bin/sdkmanager --licenses Exception in thread “main” java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema at com.android.repository.api.SchemaModule
S
c
h
e
m
a
M
o
d
u
l
e
V
e
r
s
i
o
n
.
<
i
n
i
t
>
(
S
c
h
e
m
a
M
o
d
u
l
e
.
j
a
v
a
:
156
)
a
t
c
o
m
.
a
n
d
r
o
i
d
.
r
e
p
o
s
i
t
o
r
y
.
a
p
i
.
S
c
h
e
m
a
M
o
d
u
l
e
.
<
i
n
i
t
>
(
S
c
h
e
m
a
M
o
d
u
l
e
.
j
a
v
a
:
75
)
a
t
c
o
m
.
a
n
d
r
o
i
d
.
s
d
k
l
i
b
.
r
e
p
o
s
i
t
o
r
y
.
A
n
d
r
o
i
d
S
d
k
H
a
n
d
l
e
r
.
<
c
l
i
n
i
t
>
(
A
n
d
r
o
i
d
S
d
k
H
a
n
d
l
e
r
.
j
a
v
a
:
81
)
a
t
c
o
m
.
a
n
d
r
o
i
d
.
s
d
k
l
i
b
.
t
o
o
l
.
s
d
k
m
a
n
a
g
e
r
.
S
d
k
M
a
n
a
g
e
r
C
l
i
.
m
a
i
n
(
S
d
k
M
a
n
a
g
e
r
C
l
i
.
j
a
v
a
:
73
)
a
t
c
o
m
.
a
n
d
r
o
i
d
.
s
d
k
l
i
b
.
t
o
o
l
.
s
d
k
m
a
n
a
g
e
r
.
S
d
k
M
a
n
a
g
e
r
C
l
i
.
m
a
i
n
(
S
d
k
M
a
n
a
g
e
r
C
l
i
.
j
a
v
a
:
48
)
C
a
u
s
e
d
b
y
:
j
a
v
a
.
l
a
n
g
.
C
l
a
s
s
N
o
t
F
o
u
n
d
E
x
c
e
p
t
i
o
n
:
j
a
v
a
x
.
x
m
l
.
b
i
n
d
.
a
n
n
o
t
a
t
i
o
n
.
X
m
l
S
c
h
e
m
a
a
t
j
a
v
a
.
b
a
s
e
/
j
d
k
.
i
n
t
e
r
n
a
l
.
l
o
a
d
e
r
.
B
u
i
l
t
i
n
C
l
a
s
s
L
o
a
d
e
r
.
l
o
a
d
C
l
a
s
s
(
B
u
i
l
t
i
n
C
l
a
s
s
L
o
a
d
e
r
.
j
a
v
a
:
636
)
a
t
j
a
v
a
.
b
a
s
e
/
j
d
k
.
i
n
t
e
r
n
a
l
.
l
o
a
d
e
r
.
C
l
a
s
s
L
o
a
d
e
r
s
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:636) at java.base/jdk.internal.loader.ClassLoaders
SchemaModuleVersion.<init>(SchemaModule.java:156)atcom.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)atcom.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81)atcom.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73)atcom.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48)Causedby:java.lang.ClassNotFoundException:javax.xml.bind.annotation.XmlSchemaatjava.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:636)atjava.base/jdk.internal.loader.ClassLoadersAppClassLoader.loadClass(ClassLoaders.java:182) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519) … 5 more
使用Android/Sdk/cmdline-tools/latest/bin/ 下的sdkmanager 替代
Just had this error, solved by downloading the Android SDK Command-line Tools (latest) on Android Studio, under Preferences > Appearance & Behavior > System Settings > Android SDK > SDK Tools
https://stackoverflow.com/questions/46402772/failed-to-install-android-sdk-java-lang-noclassdeffounderror-javax-xml-bind-a
|