【发布时间】:2016-10-19 17:14:27
【问题描述】:
我有一个旧项目,它在工作区中使用 ActionBarSherlock 库和旧谷歌播放服务项目。现在,我需要向项目添加推送通知,但为此,我需要编译 com.google.firebase:firebase-messaging:9.4.0 然后我有一个例外“多个库的包名称为 'com.google。 android.gms'。问题是我需要保留旧的 google play 项目模块,因为这个项目使用旧版本的谷歌地图,并在 SherlockMapFragment 中引用 getMap()。
如何编译 firebase 和旧的 google play 项目?从旧的 google play 项目中只需要 maps 组件,我可以从 google play 项目中编译一项服务吗?
提前谢谢你!
【问题讨论】:
-
尝试添加
com.google.android.gms:play-services-maps:9.6.1。
标签: android google-maps