Eclipse控制台错误生成“R”错误

时间:2013-06-20 14:24:52

标签: android eclipse android-activity r.java-file

我在创建新活动后立即在eclipse控制台上收到以下2个错误

[2013-06-20 19:06:12 - Pingcampus] 'default' is not a best match for any device/locale combination.
[2013-06-20 19:06:12 - Pingcampus] Displaying it with ', , Locale Language ___Region __, , sw320dp, w320dp, h533dp, Normal Screen, Long screen aspect ratio, Portrait Orientation, Normal, Day time, High Density, Finger-based touchscreen, Soft keyboard, No keyboard, Hidden navigation, No navigation, Screen resolution 800x480, API Level 17' which is compatible, but will actually be displayed with another more specific version of the layout.

这也限制了R.java文件的创建,因此给出了源代码的错误,即

R无法解析为变量

任何有关错误的帮助?

屏幕抓取: - enter image description here

1 个答案:

答案 0 :(得分:0)

重启你的eclipse可能会解决这个问题 或试试这个

Window --> Show View --> Problems。这应该显示Eclipse“担心”的具体问题列表。

一般clean and build项目希望它能够运作