开发者

Android Facebook SDK - java.lang.NoClassDefDefFoundError

开发者 https://www.devze.com 2023-01-07 00:51 出处:网络
I am using official android facebook SDK (downloaded from here: http://github.com/facebook/facebook-android-sdk).

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 ha开发者_开发百科ve no errors.

Any suggestions? Thank you all.


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消