Реализовано как объяснено в Документах https://firebase.google.com/docs/crashlytics/get-started?authuser=0
buildscript {
repositories {
google()
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
classpath 'com.google.gms:google-services:4.0.1'
classpath 'io.fabric.tools:gradle:1.25.4'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven {
url 'https://maven.google.com/'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Модуль: приложение
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
......
......
dependencies {
........
........
implementation 'com.google.firebase:firebase-core:16.0.3'
implementation 'com.google.firebase:firebase-messaging:17.3.2'
implementation 'com.startapp:inapp-sdk:3.10.1'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.5'
implementation 'com.google.firebase:firebase-crash:11.8.0'
}
apply plugin: 'com.google.gms.google-services'
В основной активности Laucher
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
/*StartAppSDK.init(this, getResources().getString(R.string.startApp_sdk), false);
StartAppAd.disableSplash();*/
setContentView(R.layout.activity_permission);
//Both Tried But Not get Any result
Fabric.with(this, new Crashlytics());
/*final Fabric fabric = new Fabric.Builder(this)
.kits(new Crashlytics())
.debuggable(true) // Enables Crashlytics debugger
.build();
Fabric.with(fabric);*/
FirebaseCrash.log("Activity created");
}
}
Я пробовал Ручной Сбой
Crashlytics.getInstance().crash(); // Force a crash
Моя проблема в том, что консоль Firebase все еще показывает диалог реализации
Почему он уже реализован с тех пор2 часа?
После сбоя журналы приложений выглядят так ... просто для тестирования Basb Я удалил MainActivity из файла Manifest.Ошибка появляется, как и ожидалось, но консоль Firebase все еще показывает диалог реализации.Зачем?
D/CrashlyticsCore: Crashlytics is handling uncaught exception "android.content.ActivityNotFoundException: Unable to find explicit activity class {com.gauravkhannamarketeer.navratriwallpaperapp/com.gauravkhannamarketeer.navratriwallpaperapp.activity.MainActivity}; have you declared this activity in your AndroidManifest.xml?" from thread main
D/Answers: Logged crash
D/SensorManager: sensorCTSV isCtsVerifier false
sensorCTSV isCtsVerifier false
sensorCTSV isCtsVerifier false
D/CrashlyticsCore: No log data to include with this event.
D/CrashlyticsCore: Closing open sessions.
Closing session: 5BAB3C570014-0001-7C73-036ED06B5023
Collecting session parts for ID 5BAB3C570014-0001-7C73-036ED06B5023
D/CrashlyticsCore: Session 5BAB3C570014-0001-7C73-036ED06B5023 has fatal exception: true
Session 5BAB3C570014-0001-7C73-036ED06B5023 has non-fatal exceptions: false
D/CrashlyticsCore: Collecting SessionStart data for session ID 5BAB3C570014-0001-7C73-036ED06B5023
D/CrashlyticsCore: Collecting SessionUser data for session ID 5BAB3C570014-0001-7C73-036ED06B5023
D/CrashlyticsCore: Collecting SessionApp data for session ID 5BAB3C570014-0001-7C73-036ED06B5023
D/CrashlyticsCore: Collecting SessionOS data for session ID 5BAB3C570014-0001-7C73-036ED06B5023
D/CrashlyticsCore: Collecting SessionDevice data for session ID 5BAB3C570014-0001-7C73-036ED06B5023
D/CrashlyticsCore: Removing session part files for ID 5BAB3C570014-0001-7C73-036ED06B5023
D/CrashlyticsCore: Opening a new session with ID 5BAB3C9403A8-0002-7C73-036ED06B5023
D/CrashlyticsCore: Crashlytics completed exception processing. Invoking default exception handler.