Skip to content

Instantly share code, notes, and snippets.

@jmunts
Created April 28, 2018 03:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmunts/2a2e9ce6c7585792d7f05aacb25b11cb to your computer and use it in GitHub Desktop.
Save jmunts/2a2e9ce6c7585792d7f05aacb25b11cb to your computer and use it in GitHub Desktop.
Android SDK manager throws exception with Java 9

Edit file sdkmanager in android-sdk/tools/bin

Append --add-modules java.xml.bind. Like this:

DEFAULT_JVM_OPTS='"-Dcom.android.sdklib.toolsdir=$APP_HOME" --add-modules java.xml.bind
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment