行业知识
Android 报错:项目:Could not resolve com.android.tools.build:gradle:8.0.0
2026-11-07 02:14:52
来源:互联网转载
1,异常错误以及解决方案(亲测有效)
【问题描述】新建Android Kotlin应用,未修改,编译直接报错
【错误信息】 Could not resolve com.android.tools.build:gradle:8.0.0
【解决方案】Incompatible because this component declares a component for use during compile-time, compatible with Java 11 and the consumer needed a component for use during runtime, compatible with Java 8
【解决措施】Settings->Build,Execution,Deployment->Build Tools->Gradle,修改Gradle JDK大于11版本,修改完成后,Sync Project
下一篇:服务器线路类别怎么分?