I have a resources.xml file located under direcotry values/ , That\'s
/values/resources.xml
In my case I had inadvertently done import android.R instead of import com..R.
import android.R
import com..R
Replace with your package name (or just delete the current import and let Android Studio do the rest).