我不确定为什么,但是每当我运行命令./gradlew setDecompWorkspace
时,都会出现此错误:
ERROR: JAVA_HOME is set to an invalid directory: C:\Program
Files\Java\jdk1.8.0_191\bin
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
我已将JAVA_HOME变量添加到“系统环境变量”中,如下所示:JAVA_HOME=C:\Program Files\Java\jdk1.8.0_191\
,我的系统路径包含以下内容:C:\Program Files\Java\jdk1.8.0_191\bin;C:\Program Files\Java\jdk1.8.0_191
答案 0 :(得分:0)
您的JAVA_HOME指向目录C:\ ProgramFiles \ Java \ jdk1.8.0_191 \ bin
将JAVA_HOME更改为C:\ ProgramFiles \ Java \ jdk1.8.0_191并包含
JAVA_HOME \ bin在您的路径中。
JAVA_HOME = C:\ ProgramFiles \ Java \ jdk1.8.0_191 路径= C:\ ProgramFiles \ Java \ jdk1.8.0_191 \ bin;