问题
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!"
- Delete everything related to Fabric from the project-level build.gradle
- Delete everything related to Fabric from the app-level build.gradle
- Search and delete all calls to Crashlytics within the project
- Clean Project
- Build Project
- 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