GooglePlayServicesUtil.isGooglePlayServicesAvailable返回SERVICE_VERSION UPDATE REQUIRED,但我的Google Play服务已更新

时间:2013-12-19 19:21:29

标签: android google-play-services android-maps-v2

我在Android版本2.2.1中使用了摩托罗拉Defy。 我的应用使用GoogleMaps Api V2。在使用地图之前,我使用此方法检查GooglePlayServices是否一切正常:

public static boolean checkIfMapsIsOk(Activity context) {
    int checkGooglePlayServices =    GooglePlayServicesUtil.isGooglePlayServicesAvailable(context);
    if (checkGooglePlayServices != ConnectionResult.SUCCESS) { 
        GooglePlayServicesUtil.getErrorDialog(checkGooglePlayServices, context, 1122).show();
        return false;
    } else {
        return true;
    }
}

此方法始终返回ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED,但我已检查我的Google Play服务是否已更新。我该如何解决这种情况?

感谢。

0 个答案:

没有答案