【问题标题】:Firebase Performance integration issueFirebase 性能集成问题
【发布时间】:2017-09-01 08:44:21
【问题描述】:

我正在尝试将 Firebase 性能监控添加到应用中

这是我的版本号:

FIREBASE_VERSION = '2.3.0'
PLAY_SERVICES_VERSION = '11.2.0'
SUPPORT_LIB_VERSION = '26.0.2'
BUILD_TOOLS_VERSION = '26.0.1'
COMPILE_SDK_VERSION = 26
TARGET_SDK_VERSION = 25 
MIN_SDK_VERSION = 19

将接下来的两行添加到应用级 build.gradle 文件中:

//other code
apply plugin: 'com.google.firebase.firebase-perf'
//other code
compile "com.google.firebase:firebase-perf:$PLAY_SERVICES_VERSION"

导致下一个错误:

Execution failed for task ':app:transformClassesWithFirebasePerformancePluginForProductionDebug'.
> android/support/v7/app/ActionBarActivity

Firebase performance monitor issue with support lib 26.0.0类似的问题

这个问题可能是由某些 3rd 方库引起的,有没有办法确定哪个库使用旧的支持库?

【问题讨论】:

  • 你在哪里使用 FIREBASE_VERSION?
  • 编译“com.firebaseui:firebase-ui-auth:$FIREBASE_VERSION”

标签: android firebase firebase-performance


【解决方案1】:

ActionBarActivity 已在支持库的 26.x 中删除。 请参阅以下内容以检查您的依赖项: Using gradle to find dependency tree

【讨论】:

  • 感谢您的回复。我研究了项目依赖关系,但没有发现冲突。似乎问题出在 Firebase 性能库(或其构建逻辑)中,因为当我禁用它时,项目编译并成功运行。
  • 您正在使用的库中可能存在一些弱依赖性。如果您在 firebase.google.com/support/contact/troubleshooting 提交支持票证并附上您的 gradle 依赖项,我们可以帮助追踪有问题的库。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2020-10-19
  • 1970-01-01
  • 2017-07-23
  • 1970-01-01
  • 2017-09-20
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多