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

解决办法如下:

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

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

最后重启Android Studio即可!!!
 

相关文章:

  • 2021-09-18
  • 2021-05-21
  • 2021-07-02
  • 2021-08-15
  • 2022-12-23
  • 2022-12-23
  • 2021-05-28
猜你喜欢
  • 2021-05-26
  • 2021-06-24
  • 2021-06-07
  • 2021-04-26
  • 2021-09-09
  • 2022-12-23
相关资源
相似解决方案