R.raw.anything cannot be resolved
Try to clean and rebuild your project!
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.