![]() Modify sdkmanager to use Java 8 by setting JAVA_HOME inside sdkmanager to a Java 8 installation. It also means that OpenJDK 10 will be automatically removed from your system and replaced with OpenJDK 11 the next time you update, if your updates are configured properly. This means that the hack of adding -add-modules .ee doesn't do anything anymore. 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. Tools | 26.0.1 | Android SDK Tools 26.0.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".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)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |