playgameservices / android-basic-samples

Google Play game services - Android samples
Apache License 2.0
971 stars 973 forks source link

Error with BaseGameUtils.resolveConnectionFailure #204

Closed hidrodf closed 6 years ago

hidrodf commented 8 years ago

Anyone knows something about this?

sin titulo

mallenusc commented 7 years ago

Your passing a String where it now requires an int. Instead of hard coding your error message. Put the error message in the String resource file and use the ID if the String instead. Example from Google Developer:

    if (!BaseGameUtils.resolveConnectionFailure(this,
            mGoogleApiClient, connectionResult,
            RC_SIGN_IN, R.string.signin_other_error)) {
        mResolvingConnectionFailure = false;
    }
mwgray commented 6 years ago

The latest version has deprecated BaseGameUtils, so this should no longer be an issue.