OpenJDK 10 was superseeded by OpenJDK 11, which doesn't implement .ee at all. But by then, you won't have this problem anymore. Here's an answer that will work until sdkmanager migrates to a newer version of Java. The accepted answer is outdated as of February 2019. He also briefly what those mysterious options mean. pointed out the necessary options to make this work.Please note that you may need to apply the fix above again after running sdkmanager -update, since the sdkmanager shell script may be overridden if the tools package is updated. 1 | tools/Īdd-ons addon-g._apis-google- 15 | 3 | Google APIsĪdd-ons addon-g._apis-google- 16 | 4 | Google APIsĪdd-ons addon-g._apis-google- 17 | 4 | Google APIsĪdd-ons addon-g._apis-google- 18 | 4 | Google APIsĪdd-ons addon-g._apis-google- 19 | 20 | Google APIsĪdd-ons addon-g._apis-google- 21 | 1 | Google APIsĪdd-ons addon-g._apis-google- 22 | 1 | Google APIsĪdd-ons addon-g._apis-google- 23 | 1 | Google APIsĪdd-ons addon-g._apis-google- 24 | 1 | Google APIs In my copy, the line becomes: DEFAULT_JVM_OPTS= '"=$APP_HOME" -XX:+IgnoreUnrecognizedVMOptions -add-modules .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 .ee. Locate the line which sets the DEFAULT_JVM_OPTSvariable. Open sdkmanager in your favorite editor.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. 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. Failed to install android-sdk: ": javax/xml/bind/annotation/XmlSchema".1+ 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. Java(TM) SE Runtime Environment (build 9.0. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |