gpt4 book ai didi

android - AutofillManager NPE : trying to invoke virtual method containsKey(java. lang.String)' 在空对象引用上崩溃

转载 作者:行者123 更新时间:2023-12-04 23:48:35 26 4
gpt4 key购买 nike

我没有在我的项目中使用 AutofillManager 的直接痕迹,但在崩溃分析中仍然出现这种崩溃。我们该如何处理呢?
崩溃日志-

java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.os.Bundle.containsKey(java.lang.String)' on a null object reference.

android.view.autofill.AutofillManager.onAuthenticationResult AutofillManager.java:1798
android.app.Activity.dispatchActivityResult Activity.java:8674
android.app.ActivityThread.deliverResults ActivityThread.java:5850
android.app.ActivityThread.handleSendResult ActivityThread.java:5896
android.app.servertransaction.ActivityResultItem.execute ActivityResultItem.java:54
android.app.servertransaction.ActivityTransactionItem.execute ActivityTransactionItem.java:45
android.app.servertransaction.TransactionExecutor.executeCallbacks TransactionExecutor.java:135
android.app.servertransaction.TransactionExecutor.execute TransactionExecutor.java:95
android.app.ActivityThread$H.handleMessage ActivityThread.java:2434
android.os.Handler.dispatchMessage Handler.java:106
android.os.Looper.loopOnce Looper.java:226
android.os.Looper.loop Looper.java:313
android.app.ActivityThread.main ActivityThread.java:8633
java.lang.reflect.Method.invoke Method.java
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run RuntimeInit.java:567
com.android.internal.os.ZygoteInit.main ZygoteInit.java:1135

最佳答案

它仅适用于 Android 12 设备。
这里是 open issue by Google .

关于android - AutofillManager NPE : trying to invoke virtual method containsKey(java. lang.String)' 在空对象引用上崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71553761/

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