微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

图书馆com.google.android.gms:play-services-basement正在[[15.0.1,15.0.1]]的各个其他图书馆请求,但已解析为16.0.1

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

The library com.google.android.gms:play-services-basement is being
requested by varIoUs other libraries at [[15.0.1,15.0.1]], but
resolves to 16.0.1. disable the plugin and check your dependencies
tree using ./gradlew :app:dependencies.

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'

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐