I am declaring a string in the strings.xml
and I am getting this error
here is my code:
<string name="date_picker_title">Hire Date</string>
<string name="new_employee">New Employee</string>
<string name="show_subtitle">Show Subtitle</string>
<string name="hide_subtitle">Hide Subtitle</string>
<string name="subtitle_format">%1$s crimes</string>
<string name="choose_menu">Choose a Menu Option</string>
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With