现在,我已经将所有依赖项更新到最新版本,然后我遇到了这个问题。


classpath 'com.google.gms:google-services:4.0.2'


implementation 'com.google.firebase:firebase-messaging:17.3.3'
implementation "com.google.android.gms:play-services-maps:16.0.1"
implementation "com.google.android.gms:play-services-location:16.0.1"

请帮助我解决此问题...
提前致谢...

最佳答案

由于使用较旧的库,因此会发生这种冲突,解决方案是尽可能使用最新的库。
就我而言,我正在使用Firebase版本16.0.0,当前最新版本是16.0.4(07-02-2019)

我在用这个

 implementation 'com.google.firebase:firebase-core:16.0.0'

而不是这个
 implementation 'com.google.firebase:firebase-core:16.0.4'

10-08 03:09