Wear:onConnectionFailed: ConnectionResult{statusCode=SERVICE_MISSING, resolution=null, message=null}

来源:互联网 发布:淘宝网怎么开网店 编辑:程序博客网 时间:2024/05/11 18:30
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.

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

参考:


1down vote

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!


查看了源码:

package com.google.android.gms.common;下面的GooglePlayServicesUtil

try
        {
          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;
      }




0 0
原创粉丝点击