尝试调用虚拟方法'void android.widget.Editor $ InsertionPointCursorController.hide()'

时间:2019-12-01 10:21:39

标签: android samsung-mobile

该错误似乎仅在三星手机上发生。我看了互联网,却没有找到实用的解决方案

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Editor$InsertionPointCursorController.hide()' on a null object reference
   at android.widget.Editor.stopTextActionMode(Editor.java:2687)
   at android.widget.Editor.prepareCursorControllers(Editor.java:822)
   at android.widget.TextView.nullLayouts(TextView.java:9157)
   at android.widget.TextView.checkForRelayout(TextView.java:10105)
   at android.widget.TextView.setHintInternal(TextView.java:6538)
   at android.widget.TextView.setHint(TextView.java:6527)
   at com.google.android.material.textfield.TextInputLayout.dispatchProvideAutofillStructure(TextInputLayout.java:5)
   at android.view.ViewGroup.dispatchProvideAutofillStructure(ViewGroup.java:3774)
   at android.view.ViewGroup.dispatchProvideAutofillStructure(ViewGroup.java:3774)
   at android.view.ViewGroup.dispatchProvideAutofillStructure(ViewGroup.java:3774)
   at android.view.ViewGroup.dispatchProvideAutofillStructure(ViewGroup.java:3774)
   at android.app.assist.AssistStructure$WindowNode.<init>(AssistStructure.java:517)
   at android.app.assist.AssistStructure.<init>(AssistStructure.java:2047)
   at android.app.ActivityThread.handleRequestAssistContextExtras(ActivityThread.java:3387)
   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1906)
   at android.os.Handler.dispatchMessage(Handler.java:106)
   at android.os.Looper.loop(Looper.java:214)
   at android.app.ActivityThread.main(ActivityThread.java:7073)
   at java.lang.reflect.Method.invoke(Method.java)
   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:974)

谢谢您的帮助

0 个答案:

没有答案