i have just solved it. the google services have been updated in my device and the google playservice lib of my project was in an old version .I updated it and the problem has been sovled!
02-14 11:04:36.074 24807-25201/com.kodulf.fakenetease W/GooglePlayServicesUtil: Google Play services is missing.
02-14 11:04:36.111 24807-24807/com.kodulf.fakenetease D/MainAcitivity: onConnectionFailed: ConnectionResult{statusCode=SERVICE_MISSING, resolution=null, message=null}
02-14 11:05:26.249 24807-24890/com.kodulf.fakenetease W/GooglePlayServicesUtil: Google Play services is missing.
{
localPackageInfo1 = localPackageManager.getPackageInfo("com.google.android.gms", 64);
if (!lc.aU(localPackageInfo1.versionCode)) {
break label248;
}
if (!gw()) {
break label146;
}
j = 0;
byte[][] arrayOfByte1 = new byte[3][];
arrayOfByte1[0] = b.Ix[j];
arrayOfByte1[1] = b.IE[j];
arrayOfByte1[2] = b.IC[j];
if (a(localPackageInfo1, arrayOfByte1) != null) {
break;
}
Log.w("GooglePlayServicesUtil", "Google Play Services signature invalid on Glass.");
return 9;
}
catch (PackageManager.NameNotFoundException localNameNotFoundException1)
{
Log.w("GooglePlayServicesUtil", " Google Play services is missing.");
return 1;
}
localThrowable = localThrowable;
Log.e("GooglePlayServicesUtil", "The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.");
continue;
}
02-14 11:04:36.111 24807-24807/com.kodulf.fakenetease D/MainAcitivity: onConnectionFailed: ConnectionResult{statusCode=SERVICE_MISSING, resolution=null, message=null}
02-14 11:05:26.249 24807-24890/com.kodulf.fakenetease W/GooglePlayServicesUtil: Google Play services is missing.
02-14 11:05:26.308 24807-24807/com.kodulf.fakenetease D/MainAcitivity: onConnectionFailed: ConnectionResult{statusCode=SERVICE_MISSING, resolution=null, message=null}
Google play services is missing
http://stackoverflow.com/questions/15144084/google-play-services-is-missing
参考:
|
1
|
|
查看了源码:
package com.google.android.gms.common;下面的GooglePlayServicesUtil
{
localPackageInfo1 = localPackageManager.getPackageInfo("com.google.android.gms", 64);
if (!lc.aU(localPackageInfo1.versionCode)) {
break label248;
}
if (!gw()) {
break label146;
}
j = 0;
byte[][] arrayOfByte1 = new byte[3][];
arrayOfByte1[0] = b.Ix[j];
arrayOfByte1[1] = b.IE[j];
arrayOfByte1[2] = b.IC[j];
if (a(localPackageInfo1, arrayOfByte1) != null) {
break;
}
Log.w("GooglePlayServicesUtil", "Google Play Services signature invalid on Glass.");
return 9;
}
catch (PackageManager.NameNotFoundException localNameNotFoundException1)
{
Log.w("GooglePlayServicesUtil", " Google Play services is missing.");
return 1;
}
localThrowable = localThrowable;
Log.e("GooglePlayServicesUtil", "The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.");
continue;
}

本文记录了一次解决Google Play Services缺失的问题经历。通过更新设备上的Google服务和项目的Google Play服务库版本,成功解决了该问题。
2126

被折叠的 条评论
为什么被折叠?



