简体   繁体   English

无法将Facebook Android SDK项目添加到“库”字段

[英]Unable to add Facebook Android SDK project to the Library field

I believe I've looked everywhere possible and already feel to silly because I spent literally hours on this without any success. 我相信我已经无所不在地看起来很傻了,因为我花了数小时在此上没有成功。

I follow the instructions for creating the two initial projects (Facebook Android SDK and the Test project): http://developers.facebook.com/docs/mobile/android/build/#ref 我按照说明创建两个初始项目(Facebook Android SDK和Test项目): http : //developers.facebook.com/docs/mobile/android/build/#ref

But when it comes to selecting the project by clicking on the "Add..." button, it does not really show anything in the list and my test project is full of errors because the Facebook Android SDK library has not been referenced. 但是,当要通过单击“添加...”按钮选择项目时,它并没有真正显示列表中的任何内容,并且我的测试项目充满了错误,因为未引用Facebook Android SDK库。

Could you help me out on this one, please? 你能帮我解决这个问题吗?

Thanks, 谢谢,

Chris 克里斯

Are you sure that the FB Android SDK project is marked as "Is Library"? 您确定FB Android SDK项目被标记为“是库”吗? Right click that project, Properties -> Android -> Check "Is Library" 右键单击该项目,然后依次单击属性-> Android->检查“是库”

在您的Facebook Android SDK-Project中,确保已选中“属性”->“ Android”对话框中的“ Is Library”-复选框

Actually Just totally copy the facebook SDK into your project. 实际上,只需将facebook SDK完全复制到您的项目中即可。 It will work that way only. 它只会以这种方式工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM