Skip to content
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

Open
ven-coder opened this issue Nov 25, 2023 · 7 comments
Open

Comments

@ven-coder
Copy link

gradle 8.0 API 'android.registerTransform' is removed.这个api在8.0 gradle中被移除了,使用arouter构建插件报错,更新一下吧

@dingfengnupt
Copy link

dingfengnupt commented Jan 4, 2024

会报错吗?我 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'

@xiezhihua120
Copy link

会报错吗?我 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:?"
    }
}

@moten-07
Copy link

AGP 8.0干掉了 transform,动态生成代码会失败的

@sunjun2009311
Copy link

希望官方更新Arouter

@xinghanchang
Copy link

有解决方案了吗?

@yongjitp
Copy link

如果项目里依赖Alibaba Arouter,就无法升级到Gradle 8.0. 不知贵司是否准备更新Arouter?

@FlyJingFish
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants