[英]Android Device 4.4.4 Google Play Services
I am developing an Android app and want to support back to API version 15. 我正在开发一个Android应用,并希望支持回到API版本15。
The device I'm running has Android version 4.4.4 我正在运行的设备具有Android版本4.4.4
Google Play service is install on the device with version 4.4.52 Google Play服务已安装在版本为4.4.52的设备上
What dependency do I need to add to my gradle? 我需要增加什么依赖关系? I've tried a bunch but haven't had luck:
我试了一堆但是还没有运气:
Example: 例:
1) 1)
compile 'com.google.android.gms:play-services-location:6.+'
This compiles however it fails on run saying play services needs an update. 这会编译,但是运行失败,表示播放服务需要更新。
2) 2)
compile 'com.google.android.gms:play-services-location:4.4.52'
This doesn't compile and I get the following error that I'm unsure how to fix. 无法编译,并且出现以下错误,我不确定如何修复。
google play services 4.4.52 attribute "theme" has already been defined
Here is a list of my entire Gradle dependencies: 这是我整个Gradle依赖项的列表:
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.+'
You should use: com.google.android.gms:play-services-location:7.5.0
. 您应该使用:
com.google.android.gms:play-services-location:7.5.0
。
To get the following info: Google Location, Activity Recognition, and Places. 要获取以下信息:Google位置,活动识别和地点。
GooglePlay Service is compatible to Android device that runs Android 2.3 or higher and includes Google Play Store. GooglePlay服务与运行Android 2.3或更高版本并包含Google Play商店的Android设备兼容。
All info about GooglePlay Service SDK, you can look at: https://developers.google.com/android/guides/setup 有关GooglePlay服务SDK的所有信息,您可以查看: https : //developers.google.com/android/guides/setup
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.