复盘20241012

1、

复制代码
classpath "com.android.tools.build:gradle:8.5.1" 的版本 与distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip的对应规则:

Execution failed for task ':app:compileDebugKotlin'. 解决方案

切换 setting --> other setting --> Kotlin Compiler --> kotlin to JVM下的Target JVM version 到对应的版本

保持Kotlin插件版本和 build.gradle(Project)中版本在同一个大版本下

把 setting --> other setting --> Kotlin Compiler 下的 Language version 和 API version 向上回溯一个版本

2、* What went wrong:

Execution failed for task ':app:compileDebugKotlin'.

> Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (1.8) and 'compileDebugKotlin' (17)

3、mavenCentral() 与 jcenter()

Maven Central 则是由sonatype.org维护的Maven仓库。

jcenter是一个由 bintray.com维护的Maven仓库。

是两个不同毫无瓜葛的仓库,自选自用

作用都是提供Java或者Android library服务

4、A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable

清空数据

相关推荐
黄河滴滴36 分钟前
java系统变卡变慢的原因是什么?从oom的角度分析
java·开发语言
侠客行031737 分钟前
Mybatis二级缓存实现详解
java·mybatis·源码阅读
老华带你飞1 小时前
农产品销售管理|基于java + vue农产品销售管理系统(源码+数据库+文档)
java·开发语言·前端·数据库·vue.js·spring boot·后端
Edward111111112 小时前
tomcat_servlet
java·servlet·tomcat
短剑重铸之日2 小时前
SpringBoot声明式事务的源码解析
java·后端·spring·springboot
李白的粉2 小时前
基于springboot的银行客户管理系统(全套)
java·spring boot·毕业设计·课程设计·源代码·银行客户管理系统
JIngJaneIL2 小时前
基于springboot + vue房屋租赁管理系统(源码+数据库+文档)
java·开发语言·前端·数据库·vue.js·spring boot·后端
努力的小南2 小时前
Java字节码文件常量池索引两个问题
java·常量池·字节码文件·黑马jvm字节码文件常量池索引
期待のcode2 小时前
Java的抽象类和接口
java·开发语言
while(1){yan}2 小时前
SpringDI
java·jvm·spring·java-ee