1、没有设置jdk,打开File-Project Structure-SDK Location,设置JDK Location 2、把.idea/gradle.xml中的gradleJvm由JDK改成1.8