我正在尝试将 localazy 集成到具有 AGP 8.X 版本的 Android 项目中
plugins {
// ...
id 'com.localazy.gradle'
// ...
}
当我尝试运行
./gradlew uploadStrings
时,我收到此错误:
FAILURE: Build failed with an exception.
* Where:
Build file './app/build.gradle' line: 9
* What went wrong:
An exception occurred applying plugin request [id: 'com.localazy.gradle']
> Failed to apply plugin 'com.localazy.gradle'.
> 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.
在文档中我没有找到与 AGP 8.X 集成的可能性。现在有解决办法吗?
现在在我的项目中我只能使用 CLI 版本。
来自 Localazy 的 Václav 在这里。
我们正在努力支持 AGP 8+。这有点棘手,因为 Google 删除了很多 API,并且它们不提供无缝替换。
我们希望很快(几周内)发布新版本。