Failed to run sdkmanager --list with Java 9
问题 I downloaded and installed: JDK ( jdk-9.0.1_osx-x64_bin.dmg ) from Oracle here Android SDK ( sdk-tools-darwin-3859397.zip ) from Google here. After configuring the PATH variable, I tried running sdkmanager , which replaced the android command for managing SDK components. However, it failed as shown here: $ sdkmanager --list Exception in thread \"main\" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>