前言
對于特別大的工程,里面的layout很多,會導致總得R.java文件超過了 Android studio默認的文件限制大小2560000,因此Android studio不兼容該文件,會發現studio中import R文件出錯,Java代碼里面各種報紅,但是編譯打包運行正常。需要修復studio默認文件的大小。
解決方式:
便捷的修改方式如下:
help -> Edit Custom Properties -> create custom properties?(yes) ->添加 idea.max.intellisense.filesize=5000
然后關掉重啟就好了。 好運~~~~