-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gradle 8.0构建项目报错API 'android.registerTransform' is removed. #1058
Comments
会报错吗?我 AGP 升级到 8.0.2 看上去没什么问题呢? plugins {
id 'com.android.application' version '8.0.2' apply false
id 'com.android.library' version '8.0.2' apply false
id 'org.jetbrains.kotlin.android' version '1.7.20' apply false
}
implementation 'com.alibaba:arouter-api:1.5.2'
kapt 'com.alibaba:arouter-compiler:1.5.2' |
应该是这个没有适配agp 8.0导致的 apply plugin: 'com.alibaba.arouter'
buildscript {
repositories {
mavenCentral()
}
dependencies {
// Replace with the latest version
classpath "com.alibaba:arouter-register:?"
}
} |
AGP 8.0干掉了 transform,动态生成代码会失败的 |
希望官方更新Arouter |
有解决方案了吗? |
如果项目里依赖Alibaba Arouter,就无法升级到Gradle 8.0. 不知贵司是否准备更新Arouter? |
gradle 8.5也没这个问题 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gradle 8.0 API 'android.registerTransform' is removed.这个api在8.0 gradle中被移除了,使用arouter构建插件报错,更新一下吧
The text was updated successfully, but these errors were encountered: