2016-03-31 10 views
0

Ich habe versucht, eine Facebook-Login-Button, um meine App hinzufügen, aber wenn ich den Anweisungen auf dem Appcelerator Facebook Modulbeschreibung folgen, habe ich diesen Fehler:Appcelerator facebook Modulfehler

[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 

I verwendet: Appcelerator sdk 5.2.1 android sdk 23

+0

zu initialisieren Wenn Sie gefolgt [diese Anleitung] (http://docs.appcelerator.com/platform/latest/#!/api/Modules.Facebook) dann sieht es so aus, als hättest du einen Fehler gefunden. Dank dafür! Könnten Sie überprüfen, ob dies ein bekanntes Problem im [Appcelerator JIRA] (https://jira.appcelerator.org/) ist? Wenn dies nicht der Fall ist, erstellen Sie ein Ticket, verlinken Sie auf diese Frage, geben Sie aber auch im Ticket selbst reproduzierbaren Code, Schritte und Umgebungsinformationen ein. Vergessen Sie nicht, hier einen Link zum Ticket zu setzen, damit andere es mit ansehen können. –

+0

Wahrscheinlich ist es ein Fehler in Alloy, da es in einem klassischen Projekt funktioniert. Link zum Ticket: [AC-3441] (https://jira.appcelerator.org/browse/AC-3441) – Marcin

+0

Ich sehe (Sie werden bald auch - gebeten, den privaten Kommentar zu veröffentlichen) es wurde reproduziert, so dass wir werde es so schnell wie möglich reparieren. Danke vielmals! –

Antwort

2

ich war das gleiche Problem bekommen ... In meinem Fall wurde der App in Ordnung zu arbeiten und stoppen, ohne Änderungen arbeitet ...

was auch immer ... ich meinen Fall, Ich habe gerade gefunden, dass ich brauche Rufen Sie Alloy.Globals.Facebook.initialize(); vor allem anderen an.

2

es mir passiert ist und ich brauchte

var fb = require('facebook'); 
fb.initialize();