Firebase Analytics required for Crashlytics

帅比萌擦擦* 提交于 2020-01-13 19:44:19

问题


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

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