2016-06-06 10 views
12

을 구현 한 후 정지하는 것은 다음 응용 프로그램이 다시 시작되면 내 build.gradle안드로이드 앱은 구글 중포 기지

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    testCompile 'junit:junit:4.12' 
    compile 'com.android.support:appcompat-v7:23.4.0' 
    compile 'com.android.support:design:23.4.0' 
    compile 'com.android.support:cardview-v7:23.4.0' 
    compile 'com.android.support:support-v4:23.4.0' 
    compile 'com.github.castorflex.smoothprogressbar:library:1.1.0' 
    compile 'com.google.android.gms:play-services:9.0.2' 
    compile 'com.google.firebase:firebase-core:9.0.2' 
    compile 'com.google.firebase:firebase-analytics:9.0.2' 
    compile 'com.google.firebase:firebase-ads:9.0.2' 
    compile 'com.google.firebase:firebase-crash:9.0.2' 
    compile 'com.google.firebase:firebase-messaging:9.0.2' 
} 
apply plugin: 'com.google.gms.google-services' 

응용 프로그램이 정지됩니다. 그것은 anr (활동 응답 없음) 오류를 제공합니다.

재생 서비스 9.0+ 또는 firebase에 문제가 있습니까?

+0

어디에서 freez하고 anr 로그는 어디에 있습니까? – tyczj

+0

내가 예전과 같이 최소화 된 상태에서 앱으로 돌아 왔을 때. 실행중인 앱의 홈 버튼을 누른 다음 앱으로 돌아온 다음 앱이 정지되고 몇 초 후에 anr이 표시됩니다. –

+0

비슷한 문제가 로그에 있습니다. D/FirebaseApp : 백그라운드 상태 변경 리스너에 알립니다. – Innova

답변

6

내가

compile 'com.google.android.gms:play-services:9.0.2' 
+3

이 답변을 찾았습니다. Admob의 광고를 게재하고 싶기 때문에 Google 서비스없이 앱을 출시 할 수 없습니다. 맙소사,'play-services.9.0.2' 대신 com.google.android.gms : play-services-ads : 9.0.2 '를 추가하고 문제가 사라졌습니다. –

0

이 같은 문제가 될 것 같습니다 라인 제거하여 문제를 해결되었다 : Firebase Crash produces ANR during launch

사건에 대한 official fix입니다 구글에 업데이트해야 Play 서비스 지금 밖으로 굴러.

Google Play 서비스 9.6.83에서 Firebase Crash 초기화로 문제를 해결했습니다. 사용자는 다음 2 일 이내에 언젠가 업데이트를 받아야합니다. 우리는이 문제에 대한 내부 조사를 실시하고 향후 재발을 예방하거나 최소화하기 위해 시스템을 적절히 개선 할 것입니다.

관련 문제