当前位置:   article > 正文

Android 报错:项目:Could not resolve com.android.tools.build:gradle:8.0.0_could not resolve gradle:gradle:8.0.

could not resolve gradle:gradle:8.0.

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/89098
推荐阅读
相关标签
  

闽ICP备14008679号