Closed liuyaxi closed 6 months ago
buildscript { dependencies { classpath 'com.android.tools.build:gradle:7.4.2' classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.20' classpath 'com.tencent.vasdolly:plugin:3.0.6' classpath "cn.therouter:plugin:1.2.1" classpath 'com.huawei.agconnect:agcp:1.7.3.300' classpath 'com.github.qq549631030:android-junk-code:1.1.2' classpath 'io.github.FlyJingFish.AndroidAop:android-aop-plugin:1.4.2' } } plugins { // id 'org.jetbrains.kotlin.android' version '1.8.0' apply false id 'com.google.devtools.ksp' version '1.8.0-1.0.9' apply false }
gradle 7.5
android 工具版本(最新稳定版)
arouter = { module = "cn.therouter:router", version = "1.2.1" } arouterCompiler = { module = "cn.therouter:apt", version = "1.2.1" }
jdk版本是17
两个解决办法:
jdk
用11
jdk17
+gradle8
的依赖方式
clean项目的时候会报如下错误 直接运行的时候会报如下错误