Android Gradle偶遇 Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOM

来源:互联网 发布:ftp做yum源 编辑:程序博客网 时间:2024/06/07 03:51

从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 版本号必须与当前的一致。

阅读全文
0 0
原创粉丝点击