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

清空数据

相关推荐
Seven971 天前
Condition底层机制剖析:多线程等待与通知机制
java
怒放吧德德1 天前
Spring Boot 实战:RSA+AES 接口全链路加解密(防篡改 / 防重放)
java·spring boot·后端
郑州光合科技余经理2 天前
代码展示:PHP搭建海外版外卖系统源码解析
java·开发语言·前端·后端·系统架构·uni-app·php
大大水瓶2 天前
Tomcat
java·tomcat
dustcell.2 天前
haproxy七层代理
java·开发语言·前端
游离态指针2 天前
以为发消息=下单成功?RabbitMQ从0到秒杀实战的完整踩坑笔记
java
BD_Marathon2 天前
工厂方法模式
android·java·工厂方法模式
玹外之音2 天前
Spring AI MCP 无状态服务器实战:构建AI智能用户管理系统
java·后端
java干货2 天前
Redis 的 ZipList 是什么?它是怎么解决内存碎片问题的?
java
失重外太空啦2 天前
Tomcat
java·服务器·tomcat