2

I am not able to execute the sdkmanager from command line. if I execute ./sdkmanager --list, I got following exception

Error: Could not find or load main class java.se.ee

Any help on this?

3

1 Answer 1

3

I have solved my issue by removing -XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee in the sdkmanager

It was originally

# Add default JVM options here. You can also use JAVA_OPTS and SDKMANAGER_OPTS to pass JVM options to this script. DEFAULT_JVM_OPTS='"-Dcom.android.sdklib.toolsdir=$APP_HOME" -XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee' 

and I removed -XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee.

Now I can run sdkmanager commands

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.