Android的Facebook的SDK进行错误java.lang.NoClassDefFoundError的 [英] Android facebook SDK doing error java.lang.NoClassDefFoundError‎

查看:188
本文介绍了Android的Facebook的SDK进行错误java.lang.NoClassDefFoundError的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚下载了Facebook的SDK从<一个href="http://github.com/facebook/facebook-android-sdk">http://github.com/facebook/facebook-android-sdk 我从混帐解压缩,打开Eclipse中。然后,我创建了使用现有源的新项目,并选择了Facebook的目录。所以SDK项目正确想出了(我认为)。然后,我又创建了使用现有源的新项目,并选择简单的例子。 它想出了错误。我去的属性和选择的构建路径部分,并添加了Facebook的SDK项目,applyed。所有的错误消失。 然后我试图运行的实例,但即时通讯上的Facebook SDK函数第一次调用得到一个例外!例外情况是出现NoClassDefFoundError。它似乎在运行时无法找到类的SDK。怎么来的 ?有什么建议么 ?有人却成功地运行这个例子?任何帮助将大大AP preciated。

I have just downloaded the facebook SDK from http://github.com/facebook/facebook-android-sdk I unpack it from git and opened Eclipse. I then created a new project using existing source and selected the facebook directory. So the sdk project came up correctly (i think). Then I created a new project again using existing source and selected the "Simple" example. Its came up with errors. I went in the properties and selected Build Path section and added the facebook SDK project and applyed. All the errors disappear. I then tried to run the Example but im getting an exception on the first call to facebook SDK function ! Exception is NoClassDefFoundError. Its seems that at runtime it cannot find the class of the SDK. How come ? Any suggestions ? Someone did sucessfully run this example ? Any help would be greatly appreciated.

推荐答案

右键单击该项目。选择属性 - > Android系统。在图书馆点击添加按钮,然后选择路径的Facebook SDK项目。

Right click on the Project. Choose Properties -> Android. Under Library click on the Add... button and select the path to the Facebook SDK Project.

这篇关于Android的Facebook的SDK进行错误java.lang.NoClassDefFoundError的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆