复盘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

清空数据

相关推荐
Java技术小馆2 分钟前
GitDiagram如何让你的GitHub项目可视化
java·后端·面试
Codebee18 分钟前
“自举开发“范式:OneCode如何用低代码重构自身工具链
java·人工智能·架构
程序无bug34 分钟前
手写Spring框架
java·后端
程序无bug36 分钟前
Spring 面向切面编程AOP 详细讲解
java·前端
全干engineer1 小时前
Spring Boot 实现主表+明细表 Excel 导出(EasyPOI 实战)
java·spring boot·后端·excel·easypoi·excel导出
Fireworkitte1 小时前
Java 中导出包含多个 Sheet 的 Excel 文件
java·开发语言·excel
GodKeyNet1 小时前
设计模式-责任链模式
java·设计模式·责任链模式
a_Dragon11 小时前
Spring Boot多环境开发-Profiles
java·spring boot·后端·intellij-idea
泽02021 小时前
C++之红黑树认识与实现
java·c++·rpc
ChinaRainbowSea2 小时前
补充:问题:CORS ,前后端访问跨域问题
java·spring boot·后端·spring