android笔记

解决:Cannot find System Java Comp

2017-07-03  本文已影响1026人  shenshizhong

导入github上的项目,有时候,就会报如下的错误

Error:Execution failed for task ':app:compileDebugJava'.

> Cannot find SystemJavaCompiler. Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable to point to the according directory.

解决方案:

1、直接修改版本号如下

修改后如下图:

2、然后出现下面的提示,直接点击就可以

ps:欢迎关注

公众号:android_dkx

我的博客:http://blog.csdn.NET/shenshizhong

我的简书:http://www.jianshu.com/users/345daf0211ad/latest_articles

上一篇 下一篇

猜你喜欢

热点阅读