2017-12-31 147 views
1

Android 프로젝트에 Firebase를 포함하려고합니다. 내가 사용하기 때문에,Google Play 서비스가 오래되었습니다. 11910000가 필요하지만 찾았습니다. 11577470

compile 'com.google.android.gms:play-services:9.6.0' 

이 더 이상 나를 위해 작동하지 않습니다 그들 중 대부분은에 다운 그레이드 말, 내가 여기에 대해 몇 가지 링크를 발견

Google Play services out of date. Requires 11910000 but found 11577470 

: 그것을 실행하면, 저에게이 오류가 발생합니다 SDK 26 및 다른 라이브러리와 비 호환성 오류가 발생합니다. 여기

내 Gradle을 파일입니다 (모듈) :`

dependencies { 
    classpath 'com.android.tools.build:gradle:3.0.0' 
    classpath 'com.google.gms:google-services:3.1.1' 
} 

`앱 :

android { 
compileSdkVersion 26 
defaultConfig { 
    applicationId "com.example.project" 
    minSdkVersion 24 
    targetSdkVersion 26 
    versionCode 1 
    versionName "1.0" 
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
} 
dependencies { 
implementation fileTree(include: ['*.jar'], dir: 'libs') 
implementation 'com.android.support:appcompat-v7:26.1.0' 
implementation 'com.android.support.constraint:constraint-layout:1.0.2' 
implementation 'com.google.firebase:firebase-messaging:11.8.0' 
testImplementation 'junit:junit:4.12' 
androidTestImplementation 'com.android.support.test:runner:1.0.1' 
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' 
compile 'com.google.firebase:firebase-core:11.8.0' 
compile 'com.google.android.gms:play-services:11.8.0' 

} 이 플러그인 적용 'com.google.gms.google-서비스'

And as you can see here my Google Services is updated as well.

내 기록에 이러한 오류 :

I/FirebaseCrash: Sending crashes 
W/FirebaseInstanceId: No response 
E/FirebaseInstanceId: Topic sync failed: TIMEOUT 
E/FirebaseInstanceId: Topic sync failed: SERVICE_NOT_AVAILABLE 
W/FirebaseInstanceId: No response 
E/FirebaseInstanceId: Topic sync failed: TIMEOUT 

누구든지이 문제를 해결할 수있는 방법을 알고 있습니까? 모든 팁을 부탁드립니다. 감사.

답변

0

나는 동일한 문제가 있었으며 google apps를 사용하여 API 21 에뮬레이터 이미지로 이동해야했습니다. 그 중 하나가 더 최신이고 작동합니다.

+0

특히 내가하고 싶지 않은 것이 있습니다. 나는 실제로 26 또는 27을 사용하는 것을 선호합니다. – user1888492

0

기기의 Play 서비스 APK가 앱에서 요청한 버전보다 오래된 것을 의미합니다.

에뮬레이터 인 경우 'Google API'가 아닌 이름에 'Google Play'가 포함 된 것을 사용하는 것이 좋습니다. 후자는 항상 일정보다 뒤처져 있으며 최신 Play Services 버전을 얻으려면 전체 이미지 업데이트가 필요하지만 전자는 Play 서비스를 업데이트하는 Play 스토어를 제공합니다. 이것이 장치 인 경우 this app을 업데이트하십시오.

현재 Play 서비스를 사용할 수없는 경우 앱에 알림 또는 대화 상자가 표시되어야합니다. check for availability 방법을 참조하십시오.

+0

Google Play에서 모든 것을 이미 사용 했습니까? 적어도 sdk 관리자의 업데이트. 다른 Google Play 서비스 (라이선스 라이브러리 및 APK 확장 라이브러리)를 업데이트했지만 여전히 동일한 오류가 발생했습니다. – user1888492

+0

아니요. 기기 또는 에뮬레이터에서 Play 서비스를 업데이트해야합니다. – SUPERCILEX