从GitHub上找一个视频录制的项目,down下来报这种错误:
Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable to point to the according directory.
真是莫名其妙,JDK绝对是有的。解决方案:
修改
build.gradle
中dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
}
gradle 版本号必须与当前的一致。