提问人:Leonardo Sibela 提问时间:3/19/2023 更新时间:3/19/2023 访问量:377
无法为新的 Android gradle 项目结构添加 Firebase 性能插件
Unable to add Firebase Performance Plugin for the new Android gradle project structure
问:
我正在尝试将我的 Firbebase Performance 添加到我的 Android 项目中,但文档没有解释如何在新 gradle 上添加类路径。
我应该在哪里写。
classpath 'com.google.firebase:perf-plugin:1.4.2'
...我试图映射到:
id "com.google.firebase.perf-plugin" version "1.4.2" apply false
在发布这个问题之前,我搜索了很多,但没有找到有用的东西。
似乎 firebase 文档没有更新,因为我在 Crashlytics 和 Google Services 等其他工具上看到了同样的问题
答:
2赞
Leonardo Sibela
3/19/2023
#1
我找到了解决方案:
id 'com.google.firebase.firebase-perf' version "1.4.2" apply false
谢谢聊天GPT!!:D
评论
1赞
Rosário Pereira Fernandes
9/13/2023
没错:)文档已更新,以显示这种新的 Gradle 语法。
评论