我在我的应用中添加了crashlytics,然后添加了
Answers.getInstance().logContentView(new ContentViewEvent()
.putContentName("Principal")
.putContentType("Informacion"));
到我的MainActivity和其他要跟踪的活动......
直到今天它一直工作正常,因为我把它放到了Google Play控制台:
java.lang.RuntimeException:
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2306)
at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2366)
at android.app.ActivityThread.access$800 (ActivityThread.java:149)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1284)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:135)
at android.app.ActivityThread.main (ActivityThread.java:5297)
at java.lang.reflect.Method.invoke (Native Method)
at java.lang.reflect.Method.invoke (Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:908)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:703)
Caused by: java.lang.IllegalStateException:
at io.fabric.sdk.android.Fabric.singleton (Fabric.java:275)
at io.fabric.sdk.android.Fabric.getKit (Fabric.java:525)
at com.crashlytics.android.answers.Answers.getInstance (Answers.java:34)
at com.destander.nutrirte.MainActivity.onCreate (MainActivity.java:68)
at android.app.Activity.performCreate (Activity.java:6020)
at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1105)
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2259)
事情是它失败了,而且没有报告崩溃。 现在我正在寻找一种方法来避免比我自己的错误造成更多的崩溃!