Android Facebook SDK no class def found com.facebook.android.Facebook

I'm using the Facebook SDK version, I'm not sure which version when I was given the eclipse project and told to use it, but it was provided to me before SDK 3.0 was released, so most likely 2.0. in the Android app. The app project has an SDK project listed as a required project so that we can request Facebook login in the app.

I tried to tell eclipse to export a project with or without a Facebook project, but it makes no difference.

I also tried running the app with and without the official Facebook app. Every time I try to initiate a login for Facebook, I get the message:

01-24 19:05:11.863: E/AndroidRuntime(12697): Caused by: java.lang.NoClassDefFoundError: com.facebook.android.Facebook

      

Any help or understanding is greatly appreciated.

+3


source to share


1 answer


As it turns out, one of my teammates downloaded the project from Git, compiled it and ran it unchanged, and it works fine. Obviously something messed up with my setup somewhere, whether with the SDK or Eclipse. I start Eclipse Juno, it launches Eclipse Indigo.



This turned out to be because I had not included the library project in the "Android" section of the project properties.

0


source







All Articles