I was poking around in strings.xml, and I added a string: "itemTag":
<string name="itemTag">1</string>
When I tried to access the string in an activity via R.string.itemTag, it popped up an error:
itemTag cannot be resolved or is not a field
I looked into the R.java file, and I couldn't find the string. Is there a reason why it wasn't added in the file when I added the string in string.xml and how can I fix this?
Sorry if this is a duplicate, I couldn't find anything on Google.
strings.xml:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="itemTag">1</string>
</resources>
EDIT:
I'm not sure if most of the viewers understand, in the R.java where all of the ids and strings are located (I assume), I cannot find itemTag. It is simply not there. I am assuming that once I create a string in string.xml, the string would also automatically pop up in R.java, but it doesn't seem like that is the case.