0
使用帶有Trigger.io(平臺v2.2.14)的最新Facebook(v2.12)模塊,試圖「使用Facebook登錄」會導致應用程序崩潰並顯示以下日誌中:當在Android上使用Facebook模塊時發生java.lang.NullPointerException
07-20 12:10:46.834: E/AndroidRuntime(7013): FATAL EXCEPTION: main
07-20 12:10:46.834: E/AndroidRuntime(7013): Process: com.myapp, PID: 7013
07-20 12:10:46.834: E/AndroidRuntime(7013): java.lang.RuntimeException: Unable to resume activity {com.myapp/com.facebook.LoginActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setVisibility(int)' on a null object reference
07-20 12:10:46.834: E/AndroidRuntime(7013): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2986)
07-20 12:10:46.834: E/AndroidRuntime(7013): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3017)
07-20 12:10:46.834: E/AndroidRuntime(7013): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2392)
07-20 12:10:46.834: E/AndroidRuntime(7013): at android.app.ActivityThread.access$800(ActivityThread.java:151)
07-20 12:10:46.834: E/AndroidRuntime(7013): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
07-20 12:10:46.834: E/AndroidRuntime(7013): at android.os.Handler.dispatchMessage(Handler.java:102)
07-20 12:10:46.834: E/AndroidRuntime(7013): at android.os.Looper.loop(Looper.java:135)
07-20 12:10:46.834: E/AndroidRuntime(7013): at android.app.ActivityThread.main(ActivityThread.java:5254)
07-20 12:10:46.834: E/AndroidRuntime(7013): at java.lang.reflect.Method.invoke(Native Method)
07-20 12:10:46.834: E/AndroidRuntime(7013): at java.lang.reflect.Method.invoke(Method.java:372)
07-20 12:10:46.834: E/AndroidRuntime(7013): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
07-20 12:10:46.834: E/AndroidRuntime(7013): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
07-20 12:10:46.834: E/AndroidRuntime(7013): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setVisibility(int)' on a null object reference
07-20 12:10:46.834: E/AndroidRuntime(7013): at com.facebook.LoginActivity$2.onBackgroundProcessingStarted(Unknown Source)
07-20 12:10:46.834: E/AndroidRuntime(7013): at com.facebook.AuthorizationClient.notifyBackgroundProcessingStart(Unknown Source)
07-20 12:10:46.834: E/AndroidRuntime(7013): at com.facebook.AuthorizationClient.access$2(Unknown Source)
07-20 12:10:46.834: E/AndroidRuntime(7013): at com.facebook.AuthorizationClient$GetTokenAuthHandler.tryAuthorize(Unknown Source)
07-20 12:10:46.834: E/AndroidRuntime(7013): at com.facebook.AuthorizationClient.tryCurrentHandler(Unknown Source)
07-20 12:10:46.834: E/AndroidRuntime(7013): at com.facebook.AuthorizationClient.tryNextHandler(Unknown Source)
07-20 12:10:46.834: E/AndroidRuntime(7013): at com.facebook.AuthorizationClient.authorize(Unknown Source)
07-20 12:10:46.834: E/AndroidRuntime(7013): at com.facebook.AuthorizationClient.startOrContinueAuth(Unknown Source)
07-20 12:10:46.834: E/AndroidRuntime(7013): at com.facebook.LoginActivity.onResume(Unknown Source)
07-20 12:10:46.834: E/AndroidRuntime(7013): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1257)
07-20 12:10:46.834: E/AndroidRuntime(7013): at android.app.Activity.performResume(Activity.java:6076)
07-20 12:10:46.834: E/AndroidRuntime(7013): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2975)
我有雙重檢查應用程序ID,密鑰哈希,並在Facebook上的相關設置,但這個錯誤持續出現。有沒有人遇到同樣的問題,你是如何解決它的?
你在哪個Forge平臺版本上? –
我正在運行v2.2.14 –
它仍舊會與舊版Facebook模塊崩潰嗎?例如V2.11? –