
For more detailed instructions and information, see the Android documentation.ĪVDs are managed with the AVD Manager. In the Android Studio welcome screen, click Configure » AVD Manager. The AVD Manager can also be opened inside Android projects in the Tools » AVD Manager menu.Ĭlick Create Virtual Device and select a suitable device definition. XmlSchemaĪt java.base/.loadClass(BuiltinClassLoader.java: 582)Īt java.base/$AppClassLoader.loadClass(ClassLoaders.java: 185)Īt java.base/(ClassLoader.java: 496) Android SDK ( sdk-tools-darwin-3859397.zip) from Google here.Īfter configuring the PATH variable, I tried running sdkmanager, which replaced the android command for managing SDK components.JDK ( jdk-9.0.1_osx-圆4_bin.dmg) from Oracle here.If unsure, choose Pie (API 28) with Google Play services. SdkManagerCli.main(SdkManagerCli.java: 93)Ĭaused by:. SdkManagerCli.main(SdkManagerCli.java: 117)Īt. AndroidSdkHandler.(AndroidSdkHandler.java: 81)Īt. SchemaModule$SchemaModuleVersion.(SchemaModule.java: 156)Īt. Here is the Java version: $ java -version However, it failed as shown here: $ sdkmanager -listĮxception in thread "main" : javax/xml/bind/annotation/XmlSchemaĪt. Java(TM) SE Runtime Environment (build 9.0. Failed to install android-sdk: “: javax/xml/bind/annotation/XmlSchema”.ġ+ 11, mixed mode)ĭoes anyone know how to fix it without going back to Java 8? Related Questions Java HotSpot (TM) 64-Bit Server VM (build 9.0.

However, the post is closed and the only answer suggests going back to Java 8. Please note that I already mentioned above that going back to Java 8 or running it side-by-side is NOT what I wanted. With the help of this answer, I successfully solved the problem. We are going to apply a fix in sdkmanager.

It is located at $android_sdk/tools/bin, where $android_sdk is where you unzipped the Android SDK. Locate the line which sets the DEFAULT_JVM_OPTSvariable.

ee' In my copy, it is at line 31: DEFAULT_JVM_OPTS= '"=$APP_HOME"'Īppend the following options to the variable: -XX:+IgnoreUnrecognizedVMOptions -add-modules. In my copy, the line becomes: DEFAULT_JVM_OPTS= '"=$APP_HOME" -XX:+IgnoreUnrecognizedVMOptions -add-modules.
