Facebook的SDK导入错误 [英] Facebook SDK Import errors
问题描述
我刚才导入Facebook的SDK在我的Eclipse作为一个图书馆,因为我读过的事情。
I have just imported the Facebook SDK in my eclipse as a library as I have read to do.
问题是facebook的项目是完全错误的。例如,在AccessToken.java它不能导入android.annotation,像这样,与其他进口其他文件...
The problem is the facebook project is full of errors. For instance, in the AccessToken.java it can't import "android.annotation", and like this, other files with other imports...
我已经尝试设置Java compilator到1.6,并没有做任何事情。然后我读这android.annotation只是avaible为API级别16,但该API级别是一款Android 4.xx的,我不希望这样......我想至少在Android 2.2的使用该SDK。
I have tried setting the java compilator to 1.6 and it doesn't do anything. Then I read this android.annotation is just avaible for api level 16, but that api level is for a Android 4.x.x and I don't want that... I want to use this sdk in at least Android 2.2.
任何人都可以帮我吗?
推荐答案
创建任何其他工作空间中的项目,并把所有的文件到该项目。它与固定Facebook的最新SDK我的问题。
Create a project in any other work space and move all the FILES into that project. It fixed my issue with latest facebook sdk.
这篇关于Facebook的SDK导入错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!