Eclipse无法解析字符串资源错误 [英] Eclipse could not resolve string resource error
问题描述
我刚刚创建了一个新的android项目并准备了它的基本结构。 Eclipse告诉我,它无法解析任何字符串,甚至标准的hello
或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
推荐答案
我注意到,在您的项目中,没有值
资源文件夹。当设备上的语言为...时,后缀为 -de
, -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屋!