我正在开发Android应用程序,并希望支持回API版本15.Android设备4.4.4谷歌播放服务
我运行该设备具有Android版本4.4.4
谷歌播放服务安装在版本为4.4.52的设备上
需要将哪些依赖项添加到我的gradle中?我已经尝试了一大堆,但还没有运气:
例子:
1)
compile 'com.google.android.gms:play-services-location:6.+'
然而这编译它跑说播放服务失败,需要更新。
2)
compile 'com.google.android.gms:play-services-location:4.4.52'
这并不编译,我得到以下错误,我是不知道该如何解决。
google play services 4.4.52 attribute "theme" has already been defined
这里是我的整个摇篮依赖列表:
compile 'com.android.support:appcompat-v7:22.2.0'
compile 'com.squareup.retrofit:retrofit:1.9.0'
compile 'org.parceler:parceler:0.2.13'
compile 'com.jpardogo.materialtabstrip:library:1.1.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.google.android.gms:play-services-location:6.+'
'这将编译但它不能在运行说播放服务需要一个update'那么你为什么不更新谷歌播放服务? – tyczj
你的意思是更新我的设备上的谷歌播放服务?目标是支持可能拥有我的设备版本的人员。我不能期望每个人都有更新正确的 – aherrick
如果你想粒度使用谷歌播放服务即。只使用你想从谷歌播放服务的API,你需要使用最新的。否则,您需要声明包含所有内容的谷歌播放服务 – tyczj