我试图解决 Android SDK 安装问题,并按照建议设置 JAVA_OPTS:
set JAVA_OPTS=-XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee
https://stackoverflow.com/questions/46402772/failed-to-install-android-sdk-java-lang-noclassdeffounderror-javax-xml-bind-a
然后我尝试接收不同的错误,例如
C:\Users\Daria>sdkmanager --list
Error: Could not find or load main class '-
XX:+IgnoreUnrecognizedVMOptions
Caused by: java.lang.ClassNotFoundException: '-
XX:+IgnoreUnrecognizedVMOptions
我猜这是一个错误,我想删除 JAVA_OPTS 或返回到初始状态。我该怎么做?