gpt4 book ai didi

android - Facebook 帐户工具包在某些设备上崩溃

转载 作者:太空宇宙 更新时间:2023-11-03 13:11:49 25 4
gpt4 key购买 nike

我正在使用 facebook 帐户工具包登录应用程序。 Facebook 帐户工具包在大多数设备上运行良好,但在某些设备上运行良好。在查看了 firebase 的崩溃报告后,我发现大多数设备都是三星设备。有人可以帮我解决这个问题吗?任何帮助将不胜感激。

错误日志是:

Exception java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myapp.app/com.facebook.accountkit.ui.AccountKitActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int com.facebook.accountkit.ui.bb.ordinal()' on a null object reference
android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2521)
android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2595)
android.app.ActivityThread.access$800 (ActivityThread.java:178)
android.app.ActivityThread$H.handleMessage (ActivityThread.java:1470)
android.os.Handler.dispatchMessage (Handler.java:111)
android.os.Looper.loop (Looper.java:194)
android.app.ActivityThread.main (ActivityThread.java:5631)
java.lang.reflect.Method.invoke (Method.java)
java.lang.reflect.Method.invoke (Method.java:372)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:959)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:754)
arrow_drop_down
Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'int com.facebook.accountkit.ui.bb.ordinal()' on a null object reference
com.facebook.accountkit.ui.u.a ()
com.facebook.accountkit.ui.u.a ()
com.facebook.accountkit.ui.cu.onActivityCreated ()
com.facebook.accountkit.ui.co.onActivityCreated ()
android.app.Fragment.performActivityCreated (Fragment.java:2077)
android.app.FragmentManagerImpl.moveToState (FragmentManager.java:917)
android.app.FragmentManagerImpl.moveToState (FragmentManager.java:1072)
android.app.FragmentManagerImpl.moveToState (FragmentManager.java:1054)
android.app.FragmentManagerImpl.dispatchActivityCreated (FragmentManager.java:1895)
android.app.Activity.performCreateCommon (Activity.java:6087)
android.app.Activity.performCreate (Activity.java:6094)
android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1112)
android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2468)
android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2595)
android.app.ActivityThread.access$800 (ActivityThread.java:178)
android.app.ActivityThread$H.handleMessage (ActivityThread.java:1470)
android.os.Handler.dispatchMessage (Handler.java:111)
android.os.Looper.loop (Looper.java:194)
android.app.ActivityThread.main (ActivityThread.java:5631)
java.lang.reflect.Method.invoke (Method.java)
java.lang.reflect.Method.invoke (Method.java:372)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:959)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:754)

最佳答案

我们刚刚发布了一个新版本的 Accountkit,应该可以解决这个问题。尝试将 gradle 文件中的 AccountKit 依赖项更新为此。

compile 'com.facebook.android:account-kit-sdk:4.22.1'

关于android - Facebook 帐户工具包在某些设备上崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43851769/

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