4
https://firebase.google.com/docs/crash/android의 모든 단계를 수행하여 Firebase Crash 보고서를 구현했습니다. 하지만 Firebase 콘솔에서 내 충돌 보고서를 볼 수 없습니다. 안드로이드 스튜디오의 로그 캣에서Android에서 Firebase 오류보고 활성화
은 나를 보여주는 :
V가/FirebaseCrash : 중포 기지 충돌보고를 사용할 수 없습니다.
크래시보고 사용 설정 방법을 모르겠습니다. 나도 추천했다 How to enable Firebase Crash Reporting - Android 그러나 아무것도 나를 도와주고있다.
try {
throw new NullPointerException();
} catch (NullPointerException ex) {
FirebaseCrash.logcat(Log.ERROR, TAG, "NPE caught");
FirebaseCrash.report(ex);
}
프로젝트 Gradle을 :
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.1.3' classpath 'com.google.gms:google-services:3.0.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { jcenter() } }
앱 Gradle을 :
apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion '21.1.2' defaultConfig { applicationId "medimanage.corporate.mobile" minSdkVersion 19 targetSdkVersion 22 versionCode 3 versionName "2.2" } buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile 'com.android.support:appcompat-v7:22.2.1' compile 'com.android.support:design:22.2.1' compile 'com.android.support:support-v4:+' compile 'com.daimajia.slider:library:[email protected]' compile 'uk.co.chrisjenx:calligraphy:2.1.0' compile 'com.google.code.gson:gson:2.4' compile 'de.keyboardsurfer.android.widget:crouton:[email protected]' compile 'com.astuetz:pagerslidingtabstrip:1.0.1' compile 'com.github.clans:fab:1.4.0' compile 'com.android.support:cardview-v7:22.2.1' compile files('libs/android-error-reporter.jar') compile 'com.google.firebase:firebase-core:9.6.0' compile 'com.google.firebase:firebase-crash:9.6.0' } apply plugin: 'com.google.gms.google-services'
에 제발 도와주세요
나는 그것이 작동하는지 확인하기 위해 예외를 던져 자신의 코드를 사용 이 문제를 해결하십시오.
google-services.json을 추가 했습니까? 로그에서 다른 FirebaseCrash 메시지를 확인할 수 있습니까 (예 : '응용 프로그램 컨텍스트가 없음, API 사용 중지'또는 '오류보고 초기화 실패') –
또한 기기에 Play 서비스가 설치되어 있는지 확인하십시오. 즉, "Google API"가있는 에뮬레이터 이미지 만 작동합니다. –
나는 같은 오류가 있었는데 나는 여기에 [링크] (http://stackoverflow.com/questions/40354611/error27-13-failed-to-resolve-com-google-firebasefirebase-core9-8- 0) – SaTech