You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Firebase-perf插件是否支持AGP 8.0及以上?AGP8.1.0使用遇报错求助

AGP 8.1.0集成Firebase Performance插件失败,提示找不到com.android.build.api.transform.Transform类

我在使用AGP 8.1.0的Android项目中尝试引入Firebase Performance插件,执行构建时出现以下错误:

An exception occurred applying plugin request [id: 'com.google.firebase.firebase-perf']
> Failed to apply plugin 'com.google.firebase.firebase-perf'.
   > Could not create plugin of type 'FirebasePerfPlugin'.
      > Could not generate a decorated class for type FirebasePerfPlugin.
         > com/android/build/api/transform/Transform

我了解到AGP 8.0及以上版本已经移除了Transform API,推测这个报错是因为Firebase Performance插件尚未适配AGP 8.x版本。想确认:这是我个人的配置问题,还是属于插件的兼容性bug需要提交反馈?


回答

这并非你的个人配置问题,属于Firebase Performance插件的兼容性bug,需要提交反馈。

旧版本的Firebase Performance插件依赖AGP 8.x已移除的Transform API,因此在AGP 8.1.0环境下会触发找不到类的构建错误。建议你先检查是否已升级到Firebase Performance插件的最新稳定版本:

  • 如果最新版本仍存在该问题,需前往Firebase官方issue平台提交bug反馈,附上你的AGP版本、插件版本以及完整的报错日志;
  • 问题解决前,可临时降级AGP到7.x版本以兼容现有插件,或暂时移除Firebase Performance插件的集成,待官方推出适配AGP 8.x的版本后再重新引入。

内容的提问来源于stack exchange,提问作者Yongho Ahn

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.12 12:11:02