1

我做了一个自定义键盘,最近它随机崩溃了这个日志,

2020-07-03 16:30:53.529 11538-11538/com.nisarg.nboard E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.nisarg.nboard, PID: 11538
    java.lang.IllegalStateException: The specified message queue synchronization  barrier token has not been posted or has already been removed.
        at android.os.MessageQueue.removeSyncBarrier(MessageQueue.java:520)
        at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1433)
        at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6899)
        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1029)
        at android.view.Choreographer.doCallbacks(Choreographer.java:841)
        at android.view.Choreographer.doFrame(Choreographer.java:772)
        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1015)
        at android.os.Handler.handleCallback(Handler.java:794)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:176)
        at android.app.ActivityThread.main(ActivityThread.java:6635)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)

我不知道为什么会发生这个错误,或者由于我的代码的哪一部分,有人可以帮我解决这个问题吗?

4

0 回答 0