播放服务5.2.08问题

时间:2014-09-16 09:01:39

标签: android android-studio google-play-services

GooglePlayServicesUtil.isGooglePlayServicesAvailable(this) 

总是返回2作为响应,尽管我的播放服务已经更新。

IDE:Android studio 0.8.9

设备:Nexus 5(4.4.4)

BuildToolsVersion:20.0.0

但如果我使用较旧的Play服务,一切正常。

1 个答案:

答案 0 :(得分:3)

使用android 4.4.4的设备具有播放服务版本5.0.89,其中具有android L预览的设备具有播放服务版本5.2.08。这就是android studio要求您将播放服务版本更新为5.2.08的原因。所以,现在使用

compile 'com.google.android.gms:play-services:5.0.89' 

如果您想将播放服务更新为5.2,请参阅this

如果您使用的是Android L模拟器,我认为您可以自由使用5.2.08,请参阅configure project for developer preview