![]() 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) 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.I tried to install platform-tools with the command sdkmanager but that's got worked success but i'm unable to install build-tools. My configurationn (~/.bashrc) export ANDROID_SDK_ROOT="/usr/lib/android-sdk"Įxport JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre"Įxport PATH="$JAVA_HOME/bin:$ANDROID_SDK_ROOT/cmdline-tools/tools/bin:$ANDROID_SDK_ROOT/platform-tools:$PATH" I can see my android-sdk directory permission is : drwxrwxrwx 12 root root 4096 أكت 21 17:03 android-sdk When i run this command : ls -l mkdir /usr/lib/ When i researched for 2 hours and everyone saying the permission of android-sdk directory. I'm getting the error like : Warning: Failed to read or create install properties file. I tried to install build-tools like this : sdkmanager "build-tools 29.0.3" I successfully installed android-sdk and evrything finally i need install platform tools and build tools for start developing my app. ![]() I'm planning to develop Cordova app, so i was finishing my development environment. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |