我经常崩溃
致命异常:android.view.WindowManager $ BadTokenException 无法添加窗口 - 令牌android.os.BinderProxy@278263e9无效;你的活动在运行吗?
来自fabric.io的具有此类似或类似的堆栈跟踪:
android.view.ViewRootImpl.setView (ViewRootImpl.java:566)
android.view.WindowManagerGlobal.addView (WindowManagerGlobal.java:282)
android.view.WindowManagerImpl.addView (WindowManagerImpl.java:85)
android.app.ActivityThread.handleResumeActivity (ActivityThread.java:3121)
android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2447)
android.app.ActivityThread.access$800 (ActivityThread.java:156)
android.app.ActivityThread$H.handleMessage (ActivityThread.java:1351)
android.os.Handler.dispatchMessage (Handler.java:102)
android.os.Looper.loop (Looper.java:211)
android.app.ActivityThread.main (ActivityThread.java:5373)
java.lang.reflect.Method.invoke (Method.java)
java.lang.reflect.Method.invoke (Method.java:372)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1020)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:815)
de.robv.android.xposed.XposedBridge.main (XposedBridge.java:102)
堆栈跟踪没有从我的代码初始化,我无法重现。 我有几个堆栈跟踪的变体,但都在方法setView ViewRootImpl.java类中结束。
我不明白我怎么能找到崩溃的来源。请帮帮我
编辑:我使用fabric.io的代码:
public class App extends Application {
@Override
public void onCreate() {
super.onCreate();
Fabric.with(this, new Crashlytics.Builder().core(new CrashlyticsCore.Builder().disabled(!BuildConfig.REPORT_CRASHES).build()).build());
}