小编Wan*_*gbo的帖子

本机IllegalViewOperationException:尝试为具有未知标记的视图设置本地数据

我正在开发一个react本机应用程序,在我将原始版本从0.47.2升级到0.50.3之后,我得到了一个随机崩溃未捕获的异常只发生在Android上:IllegalViewOperationException:尝试为具有未知标记的视图设置本地数据.

下面是崩溃日志

Fatal Exception: com.facebook.react.uimanager.IllegalViewOperationException: Trying to set local data for view with unknown tag: 36
       at com.facebook.react.uimanager.UIImplementation.setViewLocalData(UIImplementation.java:246)
       at com.facebook.react.uimanager.UIManagerModule$3.runGuarded(UIManagerModule.java:357)
       at com.facebook.react.bridge.GuardedRunnable.run(GuardedRunnable.java:21)
       at android.os.Handler.handleCallback(Handler.java:739)
       at android.os.Handler.dispatchMessage(Handler.java:95)
       at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
       at android.os.Looper.loop(Looper.java:158)
       at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:194)
       at java.lang.Thread.run(Thread.java:818)
Run Code Online (Sandbox Code Playgroud)

我想问一下是否有人知道崩溃的根本原因,以及如何解决它.

我也谷歌搜索如何捕获异常并找到帖子http://coofee.github.io/post/catch-react-native-IllegalViewOperationException/ 但不知道如何完全做到这一点.

谢谢.

android react-native

6
推荐指数
0
解决办法
1603
查看次数

标签 统计

android ×1

react-native ×1