Simon Nicholls
Simon Nicholls

Reputation: 93

Cordova Facebook Connect Plugin: Android.support.v4.content.LocalBroadcastManager

Been having issues in eclipse whilst working on an Android Application. The application requires the Facebook SDK & Phonegap's BarcodeScanner plugin to function. Now Previously I've had this whole project working absolutely fine on a Mac using the ADT bundle. The issues have arisen since trying to bring this project over to a Windows Machine.

So I've imported the previous project (by copying the parent directory) to sit on my computer, and re-downloaded the Facebook SDK and Phonegap plugins. I've set both the Facebook SDK and Barcodescanner as library's as I had done on the Mac version; made sure they all pointed to the right location. I've sorted some expected bugs expected from Eclipse when you import projects/library in.

Now the app runs, and when it gets to the Facebook Login I get a "Cordova Facebook Connect plugin fail on Login!android.support.v4.content.LocalBroadCastManager" in a alert window, and won't let me do anything. I'm so confused cause this project and setup was working fine on the Mac and nothing has changed except for locations of files which I've adjusted.

"VFY: Unable to find class referenced in signature (Landroid/support/v4/app/fragment;)" "Could not find method android.support.v4.content.localbroadcastmanager.getInstance,referenced from method com.facebook.session.postactiveSessionaction"

Above is the only reference I can see (in logcat) to the Androidsupport files not being found ! Any help could be greatly appreciated, especially if anyone else has moved a project from different OS's

Upvotes: 2

Views: 8307

Answers (2)

Vitor Venturin
Vitor Venturin

Reputation: 1289

I just removed the file android-support-v4.jar from project's lib folder and it works! (but before you must import the FacebookSDK folder)

Upvotes: 2

Ahmed Ouadi
Ahmed Ouadi

Reputation: 23

Go to the facebook SDK folder and then copy "android-support-v4.jar" from the folder libs and past it to the "libs" folder of your project.

Upvotes: 1

Related Questions