解决办法:Invalid Gradle JDK configuration found

简介: 解决办法:Invalid Gradle JDK configuration found

具体错误:


failed
Invalid Gradle JDK configuration found
Invalid Gradle JDK configuration found. Open Gradle Settings 
Change JDK location

 吾当然配置了,结果也是正确。为什么还是报错呢?搜索了很多,不知所云。最后终于找到一个解决办法。删除项目中的如下两个文件:


.idea/gradle.xml

.idea/workspace.xml


然后再重新进行编译。

目录
相关文章
|
3月前
|
Android开发
AS错误:Duplicate class kotlin.xxx.jdk8.DurationConversionsJDK8Kt found in modules kotlin-stdlib-1.8.22
本文描述了Android Studio中遇到的"Duplicate class found in modules"错误的解决方法,通过在`app/build.gradle`文件中使用`constraints`来排除过时的kotlin-stdlib-jdk7和kotlin-stdlib-jdk8依赖,解决了依赖冲突问题。
206 1
|
Java 开发工具 Android开发
【错误记录】Android Studio 编译报错 ( Invalid Gradle JDK configuration found )
【错误记录】Android Studio 编译报错 ( Invalid Gradle JDK configuration found )
944 0
【错误记录】Android Studio 编译报错 ( Invalid Gradle JDK configuration found )
|
Java Linux
linux配置jdk环境出现错误:/usr/libexec/grepconf.sh: line 5: grep: command not found 的解决办法
linux配置jdk环境出现错误:/usr/libexec/grepconf.sh: line 5: grep: command not found 的解决办法
304 0
|
Java
Gradle ERROR: JAVA_HOME is set to an invalid directory: D:\Software\Java\JDK9.0.4;异常处理
Gradle ERROR: JAVA_HOME is set to an invalid directory: D:\Software\Java\JDK9.0.4;异常处理
538 0
Gradle ERROR: JAVA_HOME is set to an invalid directory: D:\Software\Java\JDK9.0.4;异常处理
|
Java iOS开发
Mac编译OpenJDK8:configure: error: Xcode 4 is required to build JDK 8, the version found was 10.1config
Mac编译OpenJDK8:configure: error: Xcode 4 is required to build JDK 8, the version found was 10.1config
134 0
|
Java
使用jdk提示Assistive Technology not found: org.GNOME.Accessibility.AtkWrapper
使用jdk提示Assistive Technology not found: org.GNOME.Accessibility.AtkWrapper
109 0
|
Android开发 开发工具