看堆栈大神的解答吧
//点击file,选 中下图蓝色字图,自己重启后正常了
If everything looks OK in your project and that you're still receiving the error in all your layouts, try to 'Invalidate caches & restart'.
Wait until Android Studio has finished to create all the caches & indexes.