gpt4 book ai didi

android - 使用ScrollView出现这个异常: com. Facebook。 react 。管理器。事件。 TouchEventCoalescingKeyHelper。获取合并 key

转载 作者:太空狗 更新时间:2023-10-29 13:54:09 25 4
gpt4 key购买 nike

android中react native的问题:使用ScrollView,listView,TouchableOpacity等只要关联手势在huawei 7.0系统中运行,从边缘滑动到中指,多滑动几下,crash会发生。然后我去运行f8app出现同样的问题!

 E/AndroidRuntime: FATAL EXCEPTION: main    java.lang.RuntimeException: Tried to get non-existent cookie    at com.facebook.react.uimanager.events.TouchEventCoalescingKeyHelper.getCoalescingKey(TouchEventCoalescingKeyHelper.java:75)    at com.facebook.react.uimanager.events.TouchEvent.init(TouchEvent.java:89)    at com.facebook.react.uimanager.events.TouchEvent.obtain(TouchEvent.java:45)    at com.facebook.react.uimanager.JSTouchDispatcher.handleTouchEvent(JSTouchDispatcher.java:114)    at com.facebook.react.ReactRootView.dispatchJSTouchEvent(ReactRootView.java:155)    at com.facebook.react.ReactRootView.onInterceptTouchEvent(ReactRootView.java:127)    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2212)    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2671)    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2358)    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2671)    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2358)    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2671)    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2358)    at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:447)    at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1871)    at android.app.Activity.dispatchTouchEvent(Activity.java:3213)    at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:409)    at android.view.View.dispatchPointerEvent(View.java:10228)    at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4845)    at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4705)    at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4238)    at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4291)    at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4257)    at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4384)    at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4265)    at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4441)    at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4238)    at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4291)    at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4257)    at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4265)    at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4238)    at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6665)    at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6639)    at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6600)    at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6792)    at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:192)    at android.view.InputEventReceiver.nativeConsumeBatchedInputEvents(Native Method)    at android.view.InputEventReceiver.consumeBatchedInputEvents(InputEventReceiver.java:181)    at android.view.ViewRootImpl.doConsumeBatchedInput(ViewRootImpl.java:6739)    at android.view.ViewRootImpl$ConsumeBatchedInputRunnable.run(ViewRootImpl.java:6820)    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:923)    at android.view.Choreographer.doCallbacks(Choreographer.java:735)    at android.view.Choreographer.doFrame(Choreographer.java:661)    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:909)    at android.os.Handler.handleCallback(Handler.java:755)    at android.os.Handler.dispatchMessage(Handler.java:95)    at android.os.Looper.loop(Looper.java:156)    at android.app.ActivityThread.main(ActivityThread.java:6524)    at java.lang.reflect.Method.invoke(Native Method)    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:941)    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:831)

最佳答案

这似乎是 FB 的一个已知问题:https://github.com/facebook/react-native/issues/5944 && https://github.com/facebook/react-native/issues/11302

但暂时没有解决方案。

关于android - 使用ScrollView出现这个异常: com. Facebook。 react 。管理器。事件。 TouchEventCoalescingKeyHelper。获取合并 key ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41498757/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com