小编Sid*_*kya的帖子

在 AGP 8.0 中构建失败,无法应用插件“realm-android”。API“android.registerTransform”已删除

今天我将 gradle 插件更新到 8.0,我使用领域作为本地数据库,但更新插件后我无法构建项目。

apply plugin: 'realm-android'
Run Code Online (Sandbox Code Playgroud)
FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Build file 'C:\Work\rc_android_projects\synco\app\build.gradle' line: 15

* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin 'realm-android'.
   > API 'android.registerTransform' is removed.
     
     For more information, see https://developer.android.com/studio/releases/gradle-plugin-api-updates#transform-api.
     To determine what is calling android.registerTransform, use -Pandroid.debug.obsoleteApi=true on the command line to display more information.

* Try:
> Run with --info or --debug option to get …
Run Code Online (Sandbox Code Playgroud)

android gradle android-gradle-plugin

22
推荐指数
2
解决办法
7394
查看次数

标签 统计

android ×1

android-gradle-plugin ×1

gradle ×1