I am trying to run a Google cloud messaging sample that follows a tutorial from the official site https://developer.android.com/google/gcm/client.html . However, the sample suddenly falls and generates an error as follows:

After tracing, I found an error in this code block:
private boolean checkPlayServices() {
int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);
if (resultCode != ConnectionResult.SUCCESS) {
if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {
GooglePlayServicesUtil.getErrorDialog(resultCode, this,
PLAY_SERVICES_RESOLUTION_REQUEST).show();
} else {
Log.i(TAG, "This device is not supported.");
finish();
}
return false;
}
return true;
}
I also followed the google play service setup guide https://developer.android.com/google/play-services/setup.html and I did the following:
- Copy google-play-services_lib into the Eclipse workspace.
- Link to "google-play-services_lib" in the sample project.

, . !!!: (
P.S: , LG G3 Galaxy S4.