我試圖給Facebook登錄按鈕添加到我的應用程序,但是當我跟隨在Appcelerator的Facebook的模塊描述的指示,我得到這個錯誤:Appcelerator的Facebook的模塊錯誤
[ERROR] : TiApplication: (main) [10,1000] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{ch.inaffect.legi/org.appcelerator.titanium.TiActivity}: Unexpected CallbackManager, please use the provided Factory.; Titanium 5.2.0,2016/02/20 08:05,384775e
[ERROR] : TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{ch.inaffect.legi/org.appcelerator.titanium.TiActivity}: Unexpected CallbackManager, please use the provided Factory.
[ERROR] : TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
[ERROR] : TiApplication: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
[ERROR] : TiApplication: at android.app.ActivityThread.-wrap11(ActivityThread.java)
[ERROR] : TiApplication: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
[ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:102)
[ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:148)
[ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5422)
[ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Native Method)
[ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
[ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
[ERROR] : TiApplication: Caused by: Unexpected CallbackManager, please use the provided Factory.
[ERROR] : TiApplication: at com.facebook.login.LoginManager.registerCallback(LoginManager.java:128)
[ERROR] : TiApplication: at com.facebook.login.widget.LoginButton.registerCallback(LoginButton.java:445)
[ERROR] : TiApplication: at facebook.LoginButtonView.<init>(LoginButtonView.java:40)
[ERROR] : TiApplication: at facebook.LoginButtonProxy.createView(LoginButtonProxy.java:34)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:492)
[ERROR] : TiApplication: at org.a
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:516)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:500)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:478)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:679)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:573)
[ERROR] : TiApplication: at ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:253)
[ERROR] : TiApplication: at org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:33)
[ERROR] : TiApplication: at org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:524)
[ERROR] : TiApplication: at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:638)
[ERROR] : TiApplication: at org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:18)
[ERROR] : TiApplication: at android.app.Activity.performCreate(Activity.java:6251)
[ERROR] : TiApplication: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
[ERROR] : TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
[ERROR] : TiApplication: ... 9 more
我用: Appcelerator的SDK 5.2.1 Android SDK中23
如果按照[本指南](http://docs.appcelerator.com/platform/latest/#!/api/Modules.Facebook)那麼它看起來像你找到了一個錯誤。感謝那!你能否在[Appcelerator JIRA](https://jira.appcelerator.org/)上檢查這是否是已知問題。如果不是,請創建一個票據,鏈接到這個問題,但也提供票證本身的可重複的代碼,步驟和環境信息。不要忘記在這裏放下一張票的鏈接,以便其他人可以和你一起觀看。 –
這很可能是Alloy中的一個bug,因爲它在一個經典項目中工作。鏈接到票證:[AC-3441](https://jira.appcelerator.org/browse/AC-3441) – Marcin
我看到了(你很快就會 - 要求發表私人評論)它已被轉載,所以我們將盡快修復它。非常感謝! –