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

橙三吉。 提交于 2020-02-02 15:23:36

问题


I try to setup Firebase Crashlytics after done setup Firebase.

The crashes was sent successfully.

Which I can see them in firebase dashboard.

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.

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?


回答1:


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!

Solution -> Step - 1 -> First follow https://firebase.google.com/docs/crashlytics/get-started-new-sdk?platform=android&authuser=0 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




回答2:


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 here:
    • https://firebase.google.com/docs/crashlytics/get-started?authuser=0&platform=android

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




回答3:


Try updating your dependencies according to the Get Started page.

It should be something like:

implementation 'com.google.firebase:firebase-core:16.0.7'
implementation('com.crashlytics.sdk.android:crashlytics:2.9.9')

Remove the line:

transitive = true;




回答4:


If you have multiple apps in the project then make sure that right app is selected for communication in the Firebase crashlytics console. I searched everything on the web, at the end I realized that I have selected the wrong app in crashlytics console.




回答5:


NOTE: If everything is perfectly installed and still stuck your firebase dashboard at “Build and run your app” check your internet connection from both side PC and Mobile and change your browser to chrome.



来源:https://stackoverflow.com/questions/54707667/i-cannot-view-crash-detail-of-firebase-crashlytics-for-android-and-got-stuck-on

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!