2017-05-08 93 views
2

我正在使用Facebook帳戶工具包登錄應用程序。 Facebook帳號工具包在大多數設備上都能正常工作,但在某些設備上工作正常。在查看來自Firebase的崩潰報告後,我發現大多數設備都是三星設備。有人可以幫我解決這個問題嗎?任何幫助將不勝感激。Facebook帳戶工具包在某些設備中崩潰

錯誤日誌是:

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) 

回答

3

我們剛剛發佈Accountkit的一個新的版本,應該有這個問題的修復程序。嘗試更新您的Gradle文件中的AccountKit依賴項。

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

好的,我會試試 –

相關問題