[英]Increase API level in Android when using compile ('com.google.android.gms:play-services:+')
[英]After update - crash com.google.android.gms:play-services:5.2.8
我的依赖:
compile "com.android.support:appcompat-v7:20.+"
compile 'com.google.android.gms:play-services:5.2.08'
compile 'com.android.support:support-v4:21.0.+'
但仍然:Google Play服务已过时。 需要5208000但找到5089036
这怎么可能?
更新这项工作:
compile 'com.google.android.gms:play-services:5.0.89'
要么
compile 'com.google.android.gms:play-services:6.1.11'
要么
compile 'com.google.android.gms:play-services:6.+'
将build.gradle中的Google Play服务版本更改为设备或模拟器上的版本。
compile 'com.google.android.gms:play-services:5.0.89'
您需要在设备上从Play商店更新Google Play服务,如果您看到任何更新等待,直到问世
或者在Google上搜索并安装新的apk或使用旧版本,如5.0.77或5.0.89
您要查找的版本是5.2.08。
Android Studio会自动提供将其升级到新版本。 但是,由于一个错误,它会将“08”中的前导零值删除,这意味着它将“5.2.8”替换为“5.2.8”,而不是“5.2.08”。 要解决此问题,请将依赖项编辑为“5.2.08”而不是“5.2.8”
这将有效:
compile 'com.google.android.gms:play-services:5.2.08'
对于遇到此问题但无法完成其他工作的人 - 我的问题是我在我的gradle文件中安装了Google Play 5.2.08(编译'com.google.android.gms:play-services:5.2.08 ')因为5.0.77不起作用。
我将应用程序加载到手机上但没有用,
谷歌播放的最新更新(我可以通过我的手机 - Android 4.4.2)告诉我更新没有给我任何选项
我最终只是需要将我的gradle文件更新到最新的兼容 googlePlay,在我的版本5.0.89中。
那么找出什么版本
你现在可以使用了
compile 'com.google.android.gms:play-services:6.1.11'
使用For Gradle
修复:
compile 'com.google.android.gms:play-services:5.0.77'
对于Eclipse
:
添加为库:
https://dl-ssl.google.com/android/repository/google_play_services_5077000_r18.zip
如果上面没有工作,尝试使用旧的Playstore服务版本的Android Playstore客户端。
https://dl-ssl.google.com/android/repository/google_play_services_4132530_r14.zip
https://dl-ssl.google.com/android/repository/google_play_services_4242030_r15.zip
https://dl-ssl.google.com/android/repository/google_play_services_4323030_r16.zip
https://dl-ssl.google.com/android/repository/google_play_services_5077000_r18.zip
https://dl-ssl.google.com/android/repository/google_play_services_5089000_r19.zip
https://dl-ssl.google.com/android/repository/google_play_services_6171000_r21.zip
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.