Reputation: 11608
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
Upvotes: 8
Views: 14869
Reputation: 11
Try quick saving the strings.xml file after modifying your string resource, or save the entire project File->Save All menu... it worked for me.
Upvotes: 1
Reputation: 68935
Looks like you have deleted the default values folder
in your res
directory. You need to keep that as well with the other language specific values folders. You need to create res->Values->strings.xml
and add your string resources to it.
Upvotes: 0
Reputation: 4652
Go to the strings.xml file under values folder, remove the resource that's causing the problem (in this case "app_name") and write it again - new one.
Upvotes: 4
Reputation: 4842
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.
Upvotes: 6
Reputation: 1143
First, try to clean your project
Project > Clean
If that doesn't work, make sure you don't have a typo or something in your three strings.xml files.
Upvotes: 0