致命的な例外:java.lang.ArrayIndexOutOfBoundsException length = 12; index = 12このバグはsamsung 6.0.1(アンドロイド版)のデバイスでのみ発生します。他のAndroidデバイスでこのバグは発生しませんでした。致命的な例外:java.lang.ArrayIndexOutOfBoundsException length = 12;サムスンデバイス6.0.1のインデックス= 12 androidバージョン
stacktraceが下にあります。クラッシュレポートはありますが、再現できませんでしたエラー。機能android.view.ViewGroup.dispatchHoverEvent
で
Fatal Exception: java.lang.ArrayIndexOutOfBoundsException: length=12; index=12 at android.view.ViewGroup.dispatchHoverEvent(ViewGroup.java:1833) at android.view.View.dispatchGenericMotionEvent(View.java:10074) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2176) at android.view.ViewGroup.dispatchHoverEvent(ViewGroup.java:1878) at android.view.View.dispatchGenericMotionEvent(View.java:10074) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2176) at android.view.ViewGroup.dispatchHoverEvent(ViewGroup.java:1878) at android.view.View.dispatchGenericMotionEvent(View.java:10074) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2176) at android.view.ViewGroup.dispatchHoverEvent(ViewGroup.java:1878) at android.widget.ScrollView.dispatchHoverEvent(ScrollView.java:1107) at android.view.View.dispatchGenericMotionEvent(View.java:10074) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2176) at android.view.ViewGroup.dispatchHoverEvent(ViewGroup.java:1878) at android.view.View.dispatchGenericMotionEvent(View.java:10074) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2176) at android.view.ViewGroup.dispatchHoverEvent(ViewGroup.java:1878) at android.view.View.dispatchGenericMotionEvent(View.java:10074) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2176) at android.view.ViewGroup.dispatchHoverEvent(ViewGroup.java:1878) at android.view.View.dispatchGenericMotionEvent(View.java:10074) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2176) at android.view.ViewGroup.dispatchHoverEvent(ViewGroup.java:1878) at android.view.View.dispatchGenericMotionEvent(View.java:10074) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2176) at android.view.ViewGroup.dispatchHoverEvent(ViewGroup.java:1878) at android.view.View.dispatchGenericMotionEvent(View.java:10074) at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:2176) at android.view.ViewGroup.dispatchHoverEvent(ViewGroup.java:1878) at android.view.View.dispatchGenericMotionEvent(View.java:10074) at com.android.internal.policy.PhoneWindow$DecorView.superDispatchGenericMotionEvent(PhoneWindow.java:2839) at com.android.internal.policy.PhoneWindow.superDispatchGenericMotionEvent(PhoneWindow.java:1873) at android.app.Activity.dispatchGenericMotionEvent(Activity.java:3082) at android.support.v7.view.WindowCallbackWrapper.dispatchGenericMotionEvent(WindowCallbackWrapper.java:70) at com.android.internal.policy.PhoneWindow$DecorView.dispatchGenericMotionEvent(PhoneWindow.java:2806) at android.view.View.dispatchPointerEvent(View.java:10230) at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:5344) at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:5180) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4620) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4673) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4639) at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4781) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4647) at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4838) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4620) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4673) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4639) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4647) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4620) at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:7306) at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:7184) at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:7145) at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:7416) at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185) at android.os.MessageQueue.nativePollOnce(MessageQueue.java) at android.os.MessageQueue.next(MessageQueue.java:323) at android.os.Looper.loop(Looper.java:143) at android.app.ActivityThread.main(ActivityThread.java:7229) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Java配列インデックスは0ベースです。あなたのコードの誰かがそれを考慮に入れていません。 – TZHX
情報が不足しています...あなたが何をしようとしていたか、またはコード化しようとしていることの十分な情報をあなたの質問に追加してください... – swapyonubuntu
@TZHXエラーは私のコードでは見えなかった、エラーが発生しましたandroid.view.ViewGroup.dispatchHoverEvent ViewGroup.java:1833)それは私のコードではありません – hugerde