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

清空数据

相关推荐
平安的平安1 小时前
传统Java工程师第一次用飞算JavaAI生成SpringBoot项目
java
csjane10791 小时前
Redisson 限流原理
java·redis
一个做软件开发的牛马1 小时前
MyBatis 从零实战:完整搭建可运行 Demo,注解与 XML 双模式开发详解
java·后端
用户298698530141 小时前
Java 实践:查找与提取 Word 文档超链接
java·后端
Flittly1 小时前
【AgentScope Java新手村系列】(9)SpringBoot集成
java·spring boot·spring
星环科技1 小时前
数据标准Agent ,让企业数据说同一种语言
java·开发语言·前端
SimonKing1 小时前
Qoder 提供免费 Qwen3.7-Max,无需订阅
java·后端·程序员
dadaobusi1 小时前
RISC-V 虚拟化:虚拟机TLB处理
java·开发语言
程序猿乐锅2 小时前
【 苍穹外卖day03 | 菜品管理 】
java·开发语言·数据库·mysql
雾削木2 小时前
B语言经典教程现代化重构
java·前端·stm32·单片机·嵌入式硬件