这里有两种方法 没有设置jdk,打开File-Project Structure-SDK Location,设置JDK Location 把.idea/gradle.xml中的gradleJvm由JDK改成1.8 相关文章: