Eclipse中无法解析字符串资源错误 [英] Eclipse could not resolve string resource error
问题描述
我刚刚创建了一个新的Android项目和prepared的基本结构吧。 Eclipse是告诉我,它不可能解决任何字符串,即使标准你好
或APP_NAME
字符串:o重新启动IDE没有帮助。有什么建议么?屏幕截图可以发现这里
I just created a new android project and prepared the basic structure for it. Eclipse is telling me that it couldn't resolve any strings, even the standard "hello"
or "app_name"
strings :O Restarting the IDE didn't help. Any suggestions? A screenshot can be found here
推荐答案
我注意到,在您的项目,没有值
资源文件夹。当设备上的语言是岛区
, -en
后缀的文件夹中的资源将被应用德国,英国,但默认文件夹不应删除。尝试添加值
文件夹和相应的 string.xml
到项目中。
I noticed that in your project, there is no values
resource folder. The resource in the folder with the suffix of -de
,-en
will be applied when the language on the device is German, UK, but the default folder should not be deleted. Try to add the values
folder and corresponding string.xml
to the project.
这篇关于Eclipse中无法解析字符串资源错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!