Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I cannot view crash detail of Firebase Crashlytics for android and got stuck on "Build and run your app"

I try to setup Firebase Crashlytics after done setup Firebase.

The crashes was sent successfully.

log from Logcat

Which I can see them in firebase dashboard.

Firebase Dashboard crashes

But When I enter crashlytics to see crash detail.

I got stuck on step 3 (Build and run your app , We'll be listening for your app to communicate with our servers.).

I already try uninstall-reinstall , remove fabric or firebase crash report part but not working at all.

enter image description here

Here is firebase,fabric,crashlytics version I use.

classpath 'com.android.tools.build:gradle:3.3.1'
classpath 'com.google.gms:google-services:4.0.2'
classpath 'io.fabric.tools:gradle:1.26.1'

implementation 'com.google.firebase:firebase-core:16.0.7'
implementation('com.crashlytics.sdk.android:crashlytics:2.9.9@aar') 
{
    transitive = true;
}

Any solution?

like image 217
user1047504 Avatar asked Feb 15 '19 10:02

user1047504


People also ask

How do I check my Firebase crash log?

Crashlytics associates the logs with your crash data and displays them in the Crashlytics page of the Firebase console, under the Logs tab.

How do I stop Crashlytics on Android?

Here's a couple of ways to disable Crashlytics while you are doing your debug builds! Use a different android:versionString for debug and release builds and then disable crash reporting from the Crashlytics web dashboard for the debug version. Wrap the call to Crashlytics.


2 Answers

Guys I have commented earlier here for solution but fortunately got its solution on my own.

Initialization of app is not mentioned anywhere to get crashlytics report on our console!

Step 1. First follow the official doc's link to include all dependencies as it is given there and setup your firebase app through firebase console.

Step 2. Now do the following initialization in your base application class or base activity class.

FirebaseApp.initializeApp(getApplicationContext());
FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(true);

Now clean you project and do some force crash for few times, you should be able to see your crashlytics report on your firebase console

Refer this answer also OkHttp timeout issue

like image 51
striker Avatar answered Oct 30 '22 17:10

striker


I had the same problem.I was working in an old project with the old Fabric Crashlytics and Google Analytics

So, this are the steps I did to see the screen in Firebase of "Installation successful!"

  1. Delete everything related to Fabric from the project-level build.gradle
  2. Delete everything related to Fabric from the app-level build.gradle
  3. Search and delete all calls to Crashlytics within the project
  4. Clean Project
  5. Build Project
  6. and finally, start again following the steps from this link

The first 4 steps were the most important in my case. They cleaned every trace of the Fabric library that I had previously installed.

like image 20
Jorge Casariego Avatar answered Oct 30 '22 18:10

Jorge Casariego