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?
Share
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.