R.raw.anything cannot be resolved [duplicate]

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.

Leave a Comment