0

현재 Google Play 서비스에 문제가 있습니다. 이 메시지에 따르면 서비스는 이용할 수 없습니다. 타 메시지는 다음과 같습니다예외로 GooglePlayServices를 사용할 수 없음 2

Google Play services out of date. Requires 11400000 but found 11302470 

문제는 내가 (내가 플레이 서비스 - 장소 사용하지 : 11.4.2) 구글 플레이 서비스를 업데이트 할 수있는 방법을 지금 내가 어떤이이에

10-08 15:03:55.711 3680-3680/com.mypackage E/GooglePlayServicesUtil:  
GooglePlayServices not available due to error 2 
10-08 15:03:55.713 3680-3680/com.mypackage W/System.err: com.google.android.gms.common.GooglePlayServicesRepairableException: Google Play Services not available 
10-08 15:03:55.713 3680-3680/com.mypackage W/System.err:  at 
com.google.android.gms.common.zzo.zzbj(Unknown Source) 
10-08 15:03:55.713 3680-3680/com.mypackage W/System.err:  at 
com.google.android.gms.common.zze.zzbu(Unknown Source) 
10-08 15:03:55.713 3680-3680/com.mypackage W/System.err:  at 
com.google.android.gms.location.places.ui.zzb.build(Unknown Source) 
10-08 15:03:55.713 3680-3680/com.mypackage W/System.err:  at com.google.android.gms.location.places.ui.PlaceAutocomplete$IntentBuilder.build(Unknown Source) 

가 따라 (필요한)지도를 변경하십시오. 누구든지 나를 도울 수 있을까?

답변

0

Google Play 서비스의 버전을 확인하고 반환 유형에 따라 오류 메시지를 표시해야합니다.

다음은 내가 사용하는 간단한 방법입니다.

private void checkGooglePlayServices(){ 
     switch (GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(this)){ 
      case ConnectionResult.SERVICE_MISSING: 
       GoogleApiAvailability.getInstance().getErrorDialog(this,ConnectionResult.SERVICE_MISSING,0).show(); 
       break; 
      case ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED: 
       GoogleApiAvailability.getInstance().getErrorDialog(this,ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED,0).show(); 
       break; 
      case ConnectionResult.SERVICE_DISABLED: 
       GoogleApiAvailability.getInstance().getErrorDialog(this,ConnectionResult.SERVICE_DISABLED,0).show(); 
       break; 
     } 
    } 

오류 2ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED

입니다
관련 문제