我正在使用Phonegap(Cordova v。2.9)創建一個Android應用程序。應用程序中有通過Facebook登錄選項。所以我已經完成了facebook連接插件的設置,但是當我點擊調用我的facebookLogin()函數的Facebook登錄按鈕時,該應用程序崩潰並顯示消息「Unfortunetly,AppName已停止」 我的模擬器中沒有安裝Facebook應用程序,但它應該使用瀏覽器登錄,在這種情況下,如果沒有安裝應用程序。我已經實現了它幾天前,它在該應用程序工作正常,但這次我有這個麻煩。 有什麼想法?錯誤日誌如下...Phonegap(Android)應用程序立即崩潰,當我呼叫Facebook登錄功能
06-24 01:39:44.673: D/Cordova(1456): onPageFinished(file:///android_asset/www/index.html)
06-24 01:39:44.673: D/CordovaActivity(1456): onMessage(onPageFinished,file:///android_asset/www/index.html)
06-24 01:39:45.563: D/dalvikvm(1456): GC_FOR_ALLOC freed 338K, 11% free 3685K/4096K, paused 36ms, total 41ms
06-24 01:39:46.133: D/CordovaLog(1456): file:///android_asset/www/js/cdv-plugin-fb-connect.js: Line 12 : Endpoint saved GIF89a���������������������!���������,��������������D��;
06-24 01:39:46.133: I/chromium(1456): [INFO:CONSOLE(12)] "Endpoint saved GIF89a
06-24 01:39:50.663: I/Deprecation Notice(1456): Replace ctx.setActivityResultCallback() with cordova.setActivityResultCallback()
06-24 01:39:50.663: I/Deprecation Notice(1456): Replace ctx.runOnUiThread() with cordova.getActivity().runOnUiThread()
06-24 01:39:50.703: E/ActivityThread(1456): Failed to find provider info for com.facebook.katana.provider.AttributionIdProvider
06-24 01:39:50.733: W/ResourceType(1456): No package identifier when getting value for resource number 0x00000000
06-24 01:39:50.733: D/AndroidRuntime(1456): Shutting down VM
06-24 01:39:50.733: W/dalvikvm(1456): threadid=1: thread exiting with uncaught exception (group=0xb2accba8)
06-24 01:39:50.753: E/AndroidRuntime(1456): FATAL EXCEPTION: main
06-24 01:39:50.753: E/AndroidRuntime(1456): Process: com.android.on_me, PID: 1456
06-24 01:39:50.753: E/AndroidRuntime(1456): android.content.res.Resources$NotFoundException: Resource ID #0x0
06-24 01:39:50.753: E/AndroidRuntime(1456): at android.content.res.Resources.getValue(Resources.java:1123)
06-24 01:39:50.753: E/AndroidRuntime(1456): at android.content.res.Resources.getDrawable(Resources.java:698)
06-24 01:39:50.753: E/AndroidRuntime(1456): at com.facebook.android.FbDialog.createCrossImage(FbDialog.java:107)
06-24 01:39:50.753: E/AndroidRuntime(1456): at com.facebook.android.FbDialog.onCreate(FbDialog.java:81)
06-24 01:39:50.753: E/AndroidRuntime(1456): at android.app.Dialog.dispatchOnCreate(Dialog.java:361)
06-24 01:39:50.753: E/AndroidRuntime(1456): at android.app.Dialog.show(Dialog.java:262)
06-24 01:39:50.753: E/AndroidRuntime(1456): at com.facebook.android.Facebook.dialog(Facebook.java:839)
06-24 01:39:50.753: E/AndroidRuntime(1456): at com.facebook.android.Facebook.startDialogAuth(Facebook.java:368)
06-24 01:39:50.753: E/AndroidRuntime(1456): at com.facebook.android.Facebook.authorize(Facebook.java:231)
06-24 01:39:50.753: E/AndroidRuntime(1456): at com.facebook.android.Facebook.authorize(Facebook.java:147)
06-24 01:39:50.753: E/AndroidRuntime(1456): at org.apache.cordova.facebook.ConnectPlugin$1.run(ConnectPlugin.java:108)
06-24 01:39:50.753: E/AndroidRuntime(1456): at android.os.Handler.handleCallback(Handler.java:733)
06-24 01:39:50.753: E/AndroidRuntime(1456): at android.os.Handler.dispatchMessage(Handler.java:95)
06-24 01:39:50.753: E/AndroidRuntime(1456): at android.os.Looper.loop(Looper.java:136)
06-24 01:39:50.753: E/AndroidRuntime(1456): at android.app.ActivityThread.main(ActivityThread.java:5017)
06-24 01:39:50.753: E/AndroidRuntime(1456): at java.lang.reflect.Method.invokeNative(Native Method)
06-24 01:39:50.753: E/AndroidRuntime(1456): at java.lang.reflect.Method.invoke(Method.java:515)
06-24 01:39:50.753: E/AndroidRuntime(1456): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
06-24 01:39:50.753: E/AndroidRuntime(1456): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
06-24 01:39:50.753: E/AndroidRuntime(1456): at dalvik.system.NativeStart.main(Native Method)
06-24 01:39:52.753: I/Process(1456): Sending signal. PID: 1456 SIG: 9