“Could not find or load main class java.se.ee” while running sdkmanager --licences

最后都变了- 提交于 2019-12-04 23:08:07
Bhaumik Surani

I had the same issue.
And solved by following the below steps:

1) Install java 8

2) Run command in terminal

unset JAVA_OPTS

3) Then run command in terminal

./sdkmanager --licenses

Well, it's been 4 months since you asked the question. You must have found the answer, but here is a way easy solution for others who are still looking for it:

JAVA_OPTS='-XX:+IgnoreUnrecognizedVMOptions'

And, Voila the issue is solved!

Why this solved the problem?

Well I don't know the exact reason but, I also don't know why we tend to add java.se.ee through "--add-modules java.se.ee", I tried removing it and error was gone! Maybe because java11 removed EE module, and it was depreciated in java10.

It was just a blind shot which worked!, If anyone knows the proper reason please comment it out!

vinayak surywanshi

Unsetting JAVA_OPTS worked for me.

unset JAVA_OPTS
sdkmanager --list
dkmanager "platform-tools" "platforms;android-28"
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!