isGooglePlayServicesAvailable返回9

Mav*_*ven 1 java android google-maps

我的应用程序中有以下代码来启动Map View

private boolean servicesOk() {
    int isAvailable = GooglePlayServicesUtil
            .isGooglePlayServicesAvailable(this);
    if (isAvailable == ConnectionResult.SUCCESS) {
        return true;
    } else if (GooglePlayServicesUtil.isUserRecoverableError(isAvailable)) {
        Dialog dialog = GooglePlayServicesUtil.getErrorDialog(isAvailable,
                this, GPS_ERRORDIALOG_REQUEST);
        dialog.show();
    } else {
        Toast.makeText(this, "Connect Connect to Maps", Toast.LENGTH_SHORT)
                .show();

    }
    return false;
}
Run Code Online (Sandbox Code Playgroud)

但是在检查中它isAvailable具有价值9,而且在LogCat其不断重复的信息中:Google Play services is invalid. Cannot recover.

任何人都可以告诉我,我犯的是什么错误?

ale*_*lex 5

文档 9是谷歌播放服务的无效/不真实安装.

你确定从Play商店下载并更新了gps吗?