gpt4 book ai didi

android - java.lang.NullPointerException : Attempt to invoke virtual method 'float android.view.InputDevice$MotionRange.getMin()' 异常

转载 作者:IT老高 更新时间:2023-10-28 12:46:42 24 4
gpt4 key购买 nike

我每次点击 Widget 时都会收到以下错误:

java.lang.NullPointerException: Attempt to invoke virtual method 'float android.view.InputDevice$MotionRange.getMin()' on a null object reference

我切换到另一个项目并收到相同的错误,错误发生在 TextField、按钮和 GridList 的项目上。

我认为这可能是 sdk 中的一个错误

Flutter: 1.2.1
Dart: 2.2.0

我升级了 flutter,现在收到了。完整的日志是:

 Shutting down VM E/AndroidRuntime(26099): FATAL EXCEPTION: main
E/AndroidRuntime(26099): Process: videira.com.videiralideres, PID:
26099 E/AndroidRuntime(26099): java.lang.NullPointerException: Attempt
to invoke virtual method 'float
android.view.InputDevice$MotionRange.getMin()' on a null object
reference E/AndroidRuntime(26099): at
io.flutter.view.FlutterView.addPointerForIndex(FlutterView.java:480)
E/AndroidRuntime(26099): at
io.flutter.view.FlutterView.onTouchEvent(FlutterView.java:542)
E/AndroidRuntime(26099): at
android.view.View.dispatchTouchEvent(View.java:11779)
E/AndroidRuntime(26099): at
android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2971)
E/AndroidRuntime(26099): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2600)
E/AndroidRuntime(26099): at
android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2971)
E/AndroidRuntime(26099): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2600)
E/AndroidRuntime(26099): at
android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2971)
E/AndroidRuntime(26099): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2600)
E/AndroidRuntime(26099): at
com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:477)
E/AndroidRuntime(26099): at
com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1835)
E/AndroidRuntime(26099): at
android.app.Activity.dispatchTouchEvent(Activity.java:3326)
E/AndroidRuntime(26099): at
com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:439)
E/AndroidRuntime(26099): at
android.view.View.dispatchPointerEvent(View.java:12018)
E/AndroidRuntime(26099): at
android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4829)
E/AndroidRuntime(26099): at
android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4643)
E/AndroidRuntime(26099): at
android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4181)
E/AndroidRuntime(26099): at

新细节:当我使用镜像(Vysor 或 ScrCpy)时,我可以看到错误发生,当我用手指使用真实手机时,我可以使用该应用程序。

最佳答案

这是flutter在PC端用app镜像的Bug,更新Flutter即可,我用的是1.3.8,没问题。

关于android - java.lang.NullPointerException : Attempt to invoke virtual method 'float android.view.InputDevice$MotionRange.getMin()' 异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55182802/

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