这种原因是你的R文件太大了(超过了Android Studio的上限25.6M了)

解决办法如下:

Help -> Edit Custom Properties -> create custom properties?(yes) ->添加 idea.max.intellisense.filesize=5000

Android Studio R文件飘红但是项目可以运行

最后重启Android Studio即可!!!

转载:https://blog.csdn.net/zhangjin12312/article/details/83109366

相关文章: