我正在尝试执行MaterialToolbar
,但是我总是遇到相同的问题(Windows 10,JDK位于sdkmanager "platform-tools" "platforms;android-28"
中)
Java版本:
C:\jdk
sdkmanager命令:
java -version
java version "1.8.0_251"
Java(TM) SE Runtime Environment (build 1.8.0_251-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.251-b08, mixed mode)
sdkmanager文件为(我没有对其进行修改):
sdkmanager "platform-tools" "platforms;android-28"
Unrecognized option: -
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
我将JAVA_HOME变量设置为与JDK匹配,但是它不起作用:
你能帮我吗?
答案 0 :(得分:0)
解决方案似乎是将所有内容移至C:\cmdline-tools\tools\bin