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

It is located at $android_sdk/tools/bin, where $android_sdk is where you unzipped the Android SDK. We are going to apply a fix in sdkmanager. With the help of this answer, I successfully solved the problem. Any answer involving Java 8 will receive a vote down. Please note that I already mentioned above that going back to Java 8 or running it side-by-side is NOT what I wanted. However, the post is closed and the only answer suggests going back to Java 8.
JAVA 73 FOR MAC HOW TO
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)ĭoes anyone know how to fix it without going back to Java 8? Related Questions Java(TM) SE Runtime Environment (build 9.0.1+11)

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 .SchemaModule$SchemaModuleVersion.(SchemaModule.java:156)Īt .SchemaModule.(SchemaModule.java:75)Īt .AndroidSdkHandler.(AndroidSdkHandler.java:81)Īt .SdkManagerCli.main(SdkManagerCli.java:117)Īt .SdkManagerCli.main(SdkManagerCli.java:93)Ĭaused by: : .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.
