Android Studio: Cannot resolve symbol 'raw'
Android Studio 3.6+:
Click on Build
-> Rebuild Project
and then click File
-> Sync Project with Gradle Files
Android Studio 3.5 and earlier:
Click on Build
-> Rebuild Project
and then click Tools
-> Android
-> Sync Project with Gradle Files
Rebuilding and Syncing did not work for me. Had to restart Android Studio.