2014-11-06 12 views
1

메신저는 Google Play 서비스를 사용합니다.Google Play 서비스 버전

GooglePlayServicesUtil (1536) : 구글이 최신 Play 서비스 내 프로젝트를 실행하는 넥서스 7 에뮬레이터를 사용하려고 로그에서 이걸 발견했다. 6171000은 필요하지만 5053030이 필요합니다.

내 기기가 이전 기기의 Google Play 서비스와 제대로 작동하게하려면 라이브러리의 이전 버전을 컴파일해야하나요?

어떻게 버전 작업이 정확히 작동합니까?

답장을 보내 주셔서 감사합니다.

+0

어떤 Android 버전을 지원 하시겠습니까? – tyczj

답변

1

Google Play 서비스는 Android 2.3.3 이상에서 지원됩니다.

출력 결과에 애플리케이션에 Google Play 서비스 v6.1.71이 필요하다는 메시지가 표시됩니다. 당신은 아마 당신의 build.gradle 파일이 있습니다

compile 'com.google.android.gms:play-services:6.1.71' // or 6.1.+ 

출력의 두 번째 부분 "하지만 5,053,030 발견은"당신의 장치가 구글 응용 프로그램 요구되는 것보다 낮은 서비스 Play 앱을 의미합니다. Google Play 서비스 앱은 결국 기기에서 자동으로 업데이트됩니다.

애플리케이션에이 코드 스 니펫을 사용하면 사용자가 기기에 설치된 Google Play 서비스 앱의 버전을 시도하고 업데이트 할 수있는 대화 상자가 표시됩니다.

/** 
* Check the device to make sure it has the Google Play Services APK. If 
* it doesn't, display a dialog that allows users to download the APK from 
* the Google Play Store or enable it in the device's system settings. 
*/ 
public static boolean checkGooglePlayServices(Activity activity) { 
    int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(activity); 
    if (resultCode != ConnectionResult.SUCCESS) { 
     if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) { 
      GooglePlayServicesUtil.getErrorDialog(resultCode, activity, 9000).show(); 
     } 
     return false; 
    } 
    return true; 
}