Eclipse中无法解析字符串资源错误字符串、错误、资源、Eclipse

由网友(海上明月共潮生)分享简介:我刚刚创建了一个新的Andr​​oid项目和prepared的基本结构吧。 Eclipse是告诉我,它不可能解决任何字符串,即使标准你好或APP_NAME字符串:o重新启动IDE没有帮助。有什么建议么?屏幕截图可以发现这里 I just created a new android project and prepar...

我刚刚创建了一个新的Andr​​oid项目和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.

阅读全文

相关推荐

最新文章