I have a string resource with the name app_name and the value My App Name. I only have a single strings.xml file, so my application only has one language and one default strings.xml file. The problem occurs when I import a library that has several resource strings with the same name (app_name) and other value (Library Name) for several languages such as Spanish and French. This causes all the places where I use app_name resource to return Library Name instead of My App Name when the language the user selects in the configurations is French or panish.
Obviously, I can change the name of the resource, but I prefer to keep that name and find a way to circumvent this behaviour. Is there a way to force Android to use a string resource even if there are others?
1