2

I am using official android facebook SDK (downloaded from here: http://github.com/facebook/facebook-android-sdk).

When the program reaches the line Facebook facebook = new Facebook(); i get "java.lang.NoClassDefFoundError: com.facebook.android.Facebook".

I created a facebook project from sources downloaded and in my project I added the facebook project in buildpath (in Eclipse right click on my project -> Properties -> Java build path -> Projects -> add projects -> I choosed the facebook project). The project builds ok, I have no errors.

Any suggestions? Thank you all.

1
  • try doing this.. open facebook project export that as jar file and add that jar file to your project and then run your project Commented Sep 9, 2011 at 11:26

2 Answers 2

1

In Eclipse right click on the project -> Properties -> Android -> Library -> Add -> Select the Facebook project

Sign up to request clarification or add additional context in comments.

Comments

0

Ensure that facebook project is also built before you start your program. Otherwise adding Facebook Project as dependency should have worked fine.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.