R.raw.anything cannot be resolved [duplicate]
Solution 1:
I already faced this problem several weeks ago. You simply have to use com.example.R
(where com.example
is the name of your package), because your IDE thinks that you are using android.R
by default.
Try this out.
Solution 2:
Try to clean and rebuild your project!
Solution 3:
Or just delete import android.R;
.
Solution 4:
If that data.xml is in raw folder
but still its not resolved once Clean and build your project and check.
Still error check this : Opening raw file