问题
I've migrated my apps from Fabric to Firebase. All the apps are now visible in Firebase. My apps don't have Firebase integrated. As per the integration doc, app will still report crashes without Firebase SDK(only need Fabric SDK).
What i'm confused about is, do i need to add Firebase Analytics to get proper crash logs ? Because i forced a crash using below code(provided by Firebase) but it didn't record in Firebase but recorded in Fabric.
Button crashButton = new Button(this);
crashButton.setText("Crash!");
crashButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
Crashlytics.getInstance().crash(); // Force a crash
}
});
addContentView(crashButton, new ViewGroup.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.WRAP_CONTENT));
回答1:
Firebase Analytics is not required to use Crashlytics, but if you use both you will get better crash reports (since it combines the information from both). The problem is likely coming from somewhere else, although I can't say where based on the information provided. If the problem persists, reach out to Firebase support for personalized help in troubleshooting.
回答2:
I am assuming you already followed this guide. Perhaps you forgot to add the json file to your project.
来源:https://stackoverflow.com/questions/59623929/firebase-analytics-required-for-crashlytics