android - 未找到 ID 为 'com.google.firebase.firebase-perf' 的插件

标签 android firebase firebase-performance

在实现 Firebase 的“性能”功能时,尝试同步 Gradle 时出现以下错误:

Plugin with id 'com.google.firebase.firebase-perf' not found.
我按照这里的说明实现了它:
https://firebase.google.com/docs/perf-mon/get-started-android .特别是它指导您在根级(项目级)Gradle 文件中指定对 com.google.firebase:perf-plugin 的类路径依赖项,而不是应用程序级:
enter image description here
这是我的 Gradle,左应用程序级,右项目级:
enter image description here

最佳答案

请在您的依赖类路径中添加性能插件

`classpath 'com.google.firebase:perf-plugin:1.3.1'  // Performance Monitoring plugin`

关于android - 未找到 ID 为 'com.google.firebase.firebase-perf' 的插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64306061/

相关文章:

android - 停止使用谷歌地图 fragment 的位置

php - Google Firebase 通知无法订阅主题

javascript - Firebase 如何按用户对字段求和

ios - iOS 中的 Firebase 性能监控

android - 非法类文件 : Class module-info is missing a super type. 类文件版本 53

android - Firebase 性能监视器导致 "D8: Unsupported source file type"

android - 关闭当前应用程序的所有 Activity 并启动 Play 商店

android - 将 google-api-java-client 库与 android 一起使用时,转换为 Dalvik 格式失败并出现错误 1

java - 为什么我的应用程序不断崩溃

swift - 在TableView Swift 4中显示Firebase数据