Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 Eclipse 没有显示资源的 ID。在 XML 中它没有出现错误,但在 .java 中却没有。我已经清理了项目,我刷新了它,但它仍然没有出现。
我说的是 findViewById (R.id. );
我能做些什么?
只需删除这一行 - `import android.R;' 从您的活动中将解决您的问题。
可能你应该导入了错误的 R 类,确保你没有导入原生的 R android 类。并且您的 XML 中的每个更新都应该保存在您的 R 类中