SUP*_*LEX 5 android firebase build.gradle android-gradle-plugin firebase-performance
我正在尝试升级支持Android Gradle Plugin版本的firebase-plugins依赖版本,但Gradle构建配置会一直失败,除非我使用的是不推荐使用的版本.我正在使用Play服务版本,并且我添加了依赖项,因此失败了:1.1.23+compile11.4.2firebase-perf
implementation "com.google.firebase:firebase-perf:$playServicesVersion"
Run Code Online (Sandbox Code Playgroud)
修复它的唯一方法是将上面的内容更改implementation为compile.有没有人找到解决方案来解决这个问题?(除了降级到firebase-plugins版本1.1.0-alpha1?)
这是错误消息:
* What went wrong:
A problem occurred configuring project ':app'.
> To use the Firebase Performance Plugin, the Firebase Performance Monitoring SDK must be added to the app's build.gradle. Please add compile 'com.google.firebase:f
irebase-perf:VERSION_NUMBER_GREATER_THAN_OR_EQUAL_TO_11.0.4' to the app's build.gradle.
Run Code Online (Sandbox Code Playgroud)
编辑:已修复此问题firebase-plugins:1.1.3.
小智 5
此错误是因为firebase-perf插件专门针对com.google.firebase:firebase-perf SDK存在"编译"配置.如果SDK在构建时未包含在build.gradle中,则稍后将发生运行时崩溃.
Android Studio 3.0将'compile'替换为'implementation',插件代码应该检查firebase-perf SDK的'implementation'配置.
现在的解决方法是继续使用:编译"com.google.firebase:firebase-perf:$ playServicesVersion"
这将在未来的firebase-plugins版本中修复.
| 归档时间: |
|
| 查看次数: |
542 次 |
| 最近记录: |