今天我将 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)