同步'com.google.firebase:[email protected]'时发生构建错误

问题描述 投票:0回答:1

我正在为崩溃报告添加Firebase分析。在同步即时消息时出现以下错误

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:[email protected]
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.firebase:[email protected]
-- 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}
android firebase firebase-realtime-database firebase-cloud-messaging firebase-analytics
1个回答
1
投票
也与firebaseinstanceid相关,您需要检查以下内容:

What to use now that FirebaseInstanceId.getInstance().getToken() is deprecated

© www.soinside.com 2019 - 2024. All rights reserved.