DoKit icon indicating copy to clipboard operation
DoKit copied to clipboard

gradle8.0已发布,并且已经移除registerTransform api,请问什么时候适配?

Open 403462630 opened this issue 2 years ago • 8 comments

403462630 avatar Apr 28 '23 09:04 403462630

The same problem, mark.

Sandfone avatar Oct 02 '23 13:10 Sandfone

+1

xiaobaoKing1 avatar Oct 10 '23 01:10 xiaobaoKing1

+1

IurKwan avatar Oct 15 '23 07:10 IurKwan

The following is the compilation error log:

API 'android.registerTransform' is obsolete.
It will be removed in version 8.0 of the Android Gradle plugin.
The Transform API is removed to improve build performance. Projects that use the
Transform API force the Android Gradle plugin to use a less optimized flow for the
build that can result in large regressions in build times. It’s also difficult to
use the Transform API and combine it with other Gradle features; the replacement
APIs aim to make it easier to extend the build without introducing performance or
correctness issues.

There is no single replacement for the Transform API—there are new, targeted
APIs for each use case. All the replacement APIs are in the
`androidComponents {}` block.
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.
Affected Modules: app

fangjian98 avatar Dec 19 '23 03:12 fangjian98

如果要在 AGP8+ 上使用插件可以用我做的兼容包 https://github.com/Ysj001/DoKitPluginCompat

Ysj001 avatar Dec 19 '23 08:12 Ysj001

修改gradle版本也可以成功编译,我的AS版本为:Android Studio Hedgehog | 2023.1.1,Gradle JDK选择11

图片

fangjian98 avatar Dec 20 '23 03:12 fangjian98

快快快啊

gaoguanqi avatar Mar 20 '24 06:03 gaoguanqi

The same problem, mark.

Herrick66 avatar Mar 25 '24 02:03 Herrick66