Jud*_*des 30 android firebase firebase-cloud-messaging firebase-analytics firebase-crash-reporting
我已经检查了我的app build.gradle文件,这些是与firebase相关的唯一行
/***
* Firebase
*/
implementation 'com.google.firebase:firebase-core:15.0.0'
implementation 'com.google.firebase:firebase-messaging:15.0.0'
implementation('com.crashlytics.sdk.android:crashlytics:2.9.1@aar') {
transitive = true
}
implementation 'com.google.firebase:firebase-ads:15.0.0'
Run Code Online (Sandbox Code Playgroud)
我没有任何使用firebase的库,所以我认为使用旧版本的库不会出现问题.
问题是我不能使用新的v15版本的firebase构建gradle,clean项目或重建项目,因为它不断抛出错误 All firebase libraries must be either above or below 14.0.0
Jud*_*des 25
结果我忘记更改版本号com.google.android.gms:play-services-ads
,切换到15.0.0
它并且它工作.
这是Google的博客,提供了更多信息. 在Google Play服务和Firebase中宣布新的SDK版本
Ahm*_*şek 17
apply plugin: 'com.google.gms.google-services'
Run Code Online (Sandbox Code Playgroud)
把它放在这条线下.
apply plugin: 'com.android.application'
Run Code Online (Sandbox Code Playgroud)
它对我有用.
归档时间: |
|
查看次数: |
28694 次 |
最近记录: |