gpt4 book ai didi

android - 尝试在空对象引用上调用接口(interface)方法 'boolean android.view.inputmethod.InputConnection.finishComposingText()' - Android Kotlin

转载 作者:搜寻专家 更新时间:2023-11-01 09:24:49 28 4
gpt4 key购买 nike

当我单击工具栏后退按钮(如 gif 所示)时发生错误:Attempt to invoke interface method 'boolean android.view.inputmethod.InputConnection.finishComposingText()' on a null object reference。我认为这是由于专注于 EditText

enter image description here

============================================= =======================

enter image description here

java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.view.inputmethod.InputConnection.finishComposingText()' on a null object reference
at android.view.inputmethod.InputConnectionWrapper.finishComposingText(InputConnectionWrapper.java:78)
at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:362)
at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:78)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5912)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200)

07-20 18:53:58.839 976-13033/? E/android.os.Debug: ro.product_ship = true ro.debug_level = 0x4f4c07-20 18:53:59.239 3996-13041/? E/SQLiteLog: (284) crash_info_summary(package_name_touched) 自动索引07-20 18:53:59.569 976-1519/? E/ActivityManager: checkUser: useridlist=null, currentuser=0

最佳答案

您的代码没有任何问题。尝试清理您的构建缓存。见下图 enter image description here

然后重建你的项目

您还应该尝试删除项目目录中的 .gradle 文件夹。

关于android - 尝试在空对象引用上调用接口(interface)方法 'boolean android.view.inputmethod.InputConnection.finishComposingText()' - Android Kotlin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51445096/

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