I just opened an older android app project and all of a sudden numerous R.string._var_Name errors were found. If I add "import android.R" then the _var_name becomes an issue saying "cannot be resolved or is not a field". The translation is in /res/values/strings.xml . Any ideas why the error exists?
If your class files are not in your root package, you'll need to import them at the top of your file like this:
your.package.name.R
In my case import android.R was usually the problem. I then removed it and build again (eclipse) and than it worked. Cleaning the project often helps too.
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