【问题标题】:Eclipse console errors generating 'R' errorEclipse 控制台错误生成“R”错误
【发布时间】:2013-06-17 11:06:41
【问题描述】:

我在创建新活动后立即在 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 无法解析为变量

对错误有任何帮助吗?

屏幕抓取:-

【问题讨论】:

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


【解决方案1】:

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

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

一般clean and build该项目希望它工作

【讨论】:

  • 在“问题控制台”上方添加截屏
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2011-03-29
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-02-21
  • 1970-01-01
相关资源
最近更新 更多