Edit sdkmanager
file, find DEFAULT_JVM_OPTS
and add --add-modules java.xml.bind
argument to it.
For instance, if your sdkmanager
file has
DEFAULT_JVM_OPTS='"-Dcom.android.sdklib.toolsdir=$APP_HOME"'
change it to
DEFAULT_JVM_OPTS='"-Dcom.android.sdklib.toolsdir=$APP_HOME" --add-modules java.xml.bind'