网址:https://stackoverflow.com/questions/8390733/relativelayout-couldnt-resolve-resource-android
As Jose said, sometimes Android Studio just gets crazy. But a restart ain't always enough.
Invalidate your caches and restart.
File -> Invalidate Caches / Restart... -> Invalidate and Restart