I am declaring a string in the strings.xml
and I am getting this error
here is my code:
Hire Da
Here in my case this just helped me:
If it doesn't work for you, try adding the same strings to strings.xml(v21)
file.
This worked perfectly for me.
Try this. It solved the error in my case.
Go to File -> Invalidate caches and restart . In Android Studio Menu Bar
Besides all the answers here, make sure your default strings.xml
doesn't have a tools:locale
attribute. Apparently, the default locale is assumed to be English always.