【发布时间】:2012-12-19 03:42:21
【问题描述】:
我将 Facebook SDK 以及一些示例项目导入 Eclipse。我在所有这些上都有红色 X,但我设法修复了。现在我还有一些红色的X。当我查看这些项目的 java 文件时,其中有错误(例如这样的一行:setContentView(R.layout.main); 我看到以下错误:
R cannot be resolved to a variable.
当我查看 main.xml 布局文件时,我看到这样的错误:
Multiple annotations found at this line:
- error: No resource identifier found for attribute 'confirm_logout' in package
'com.facebook.samples.hellofacebook'
- error: No resource identifier found for attribute 'fetch_user_info' in package
'com.facebook.samples.hellofacebook'
我尝试转到 Android 工具 -> 修复项目属性,但这没有帮助。问题是什么?如何解决?
【问题讨论】: