问题:

在Android下面中 ,使用 'com.google.protobuf:protoc:3.xxx.0' 解析protocol 生成的java类 ,Android studio 找不到 protocol buffer 生成的 class 类,而在build 项目,编译apk都是正常编译的。

提示:

The file size (4.53 MB) exceeds the configured limit (2.56 MB). Code iinsight features are not available

解决方案:

  • Windows/Linux:点击菜单栏的 ​Help​ > ​Edit Custom VM Options...​
  • macOS:点击菜单栏的 ​Android Studio​ > ​Settings​ > ​Appearance & Behavior​ > ​System Settings​ > ​Memory Settings,然后点击 ​Custom VM Options  
     

在文件中添加以下行​:

-Didea.max.intellisense.filesize=10000

保存重启Android studio即可

Logo

Agent 垂直技术社区,欢迎活跃、内容共建。

更多推荐