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

清空数据

相关推荐
Knight_AL42 分钟前
Spring AOP 中 JoinPoint 使用指南
java·python·spring
jmxwzy1 小时前
点赞系统问题
java·redis·tidb·pulsar
ss2731 小时前
ThreadPoolExecutor:自定义线程池参数
java·开发语言
invicinble1 小时前
关于fastjson的具体使用案例
java
墨着染霜华1 小时前
Spring Boot整合Kaptcha生成图片验证码:新手避坑指南+实战优化
java·spring boot·后端
码界奇点2 小时前
Java外功核心7深入源码拆解Spring Bean作用域生命周期与自动装配
java·开发语言·spring·dba·源代码管理
czlczl200209252 小时前
Spring Security @PreAuthorize 与自定义 @ss.hasPermission 权限控制
java·后端·spring
我爱学习好爱好爱2 小时前
Prometheus监控栈 监控java程序springboot
java·spring boot·prometheus
老华带你飞2 小时前
考试管理系统|基于java+ vue考试管理系统(源码+数据库+文档)
java·开发语言·前端·数据库·vue.js·spring boot·后端
阿蒙Amon2 小时前
C#每日面试题-属性和特性的区别
java·面试·c#