解决:Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a JRE)

本文详细解析了在导入GitHub项目时遇到的“Error:Execution failed for task ‘:app:compileDebugJava’”错误,并提供了具体的解决方案,包括修改版本号和配置JAVA_HOME环境变量的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

导入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、然后出现下面的提示,直接点击就可以

在这里插入图片描述

我的博客:http://blog.csdn.NET/shenshizhong我的简书:http://www.jianshu.com/users/345daf0211ad/latest_articles

作者:shenshizhong
链接:https://www.jianshu.com/p/b3de5849ecca
来源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值