[英]Build error while syncing 'com.google.firebase:firebase-analytics@17.2.2'
I am adding firebase analytics for crash report.我正在为崩溃报告添加 firebase 分析。 while sycnchronizing im am getting below error
同步时我遇到错误
ERROR: In project 'app' a resolved Google Play services library dependency depends on another at an
exact version (e.g. "[17.1.1]", but isn't being resolved to that version. Behavior exhibited by the
library will be unknown. Dependency failing: com.google.firebase:firebase-messaging:17.5.0 ->
com.google.firebase:firebase-iid@[17.1.1], but firebase-iid version was 20.0.2.The following
dependencies are project dependencies that are direct or have transitive dependencies that lead to
the artifact with the issue.
-- Project 'app' depends onto com.google.firebase:firebase-config@16.4.0
-- Project 'app' depends onto com.google.firebase:firebase-messaging@17.5.0
-- Project 'app' depends onto com.google.firebase:firebase-analytics@17.2.2
-- Project 'app' depends onto com.google.firebase:firebase-messaging@{strictly 17.5.0}
-- Project 'app' depends onto com.google.firebase:firebase-config@{strictly 16.4.0}
-- Project 'app' depends onto com.google.firebase:firebase-iid@{strictly 20.0.2}
-- Project 'app' depends onto com.google.android.gms:play-services-measurement-api@{strictly 17.2.2}
-- Project 'app' depends onto com.google.firebase:firebase-analytics@{strictly 17.2.2}
Update all your firebase dependencies to the latest version.将所有 firebase 依赖项更新到最新版本。 Also after you update, you need to update to androidx and use
compileSdkVersion
28.同样在你更新后,你需要更新到 androidx 并使用
compileSdkVersion
28。
Also related to firebaseinstanceid
, you need check the following:也与
firebaseinstanceid
有关,您需要检查以下内容:
What to use now that FirebaseInstanceId.getInstance().getToken() is deprecated 现在不推荐使用 FirebaseInstanceId.getInstance().getToken()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.