我在项目中遇到 android gradle 插件 (agp) 版本问题。目前,我使用的是 agp 8.2.1,但它似乎不兼容。错误消息显示最新支持的版本是 agp 8.2.0-alpha14。
[Error] Incompatible AGP Version: The project is using AGP 8.2.1, but the latest supported version is AGP 8.2.0-alpha14.
尝试同步 gradle
正确答案
通过降级 libs.versions.toml 文件中的 gradle 版本来解决,在我的例子中,我将其降级为“8.1.0”。
谢谢。
您需要更新 Android Studio。










