Android Studio Mac OSX:JSON文件大小超过配置的限制(2560000)。代码洞察功能不可用

Android Studio Mac OSX:JSON文件大小超过配置的限制(2560000)。代码洞察功能不可用,json,macos,android-studio,Json,Macos,Android Studio,我正在开发一个android应用程序,其中我将一个4.8MB的JSON文件解析到一个sqlite数据库中,然后访问该数据库以在列表视图中显示数据。由于问题标题中提到的错误/标志,我认为listview阻止了所有项目在列表视图中显示。有没有办法配置最大文件大小?打开此文件:“/Android Studio/bin/idea.properties”。 添加:idea.max.intellisense.filesize=2500。 仅供参考,它只适用于windows。不需要json文件的代码洞察。无论

我正在开发一个android应用程序,其中我将一个4.8MB的JSON文件解析到一个sqlite数据库中,然后访问该数据库以在列表视图中显示数据。由于问题标题中提到的错误/标志,我认为listview阻止了所有项目在列表视图中显示。有没有办法配置最大文件大小?

打开此文件:“/Android Studio/bin/idea.properties”。 添加:idea.max.intellisense.filesize=2500。
仅供参考,它只适用于windows。

不需要json文件的代码洞察。无论如何,请按照以下步骤操作:

打开IntelliJ IDEA平台属性文件:

cd /Applications/Android Studio.app/Contents/bin
open idea.properties  
现在,添加一行:

#---------------------------------------------------------------------
# Maximum file size (kilobytes) IDE should provide code assistance for.
# The larger file is the slower its editor works and higher overall system memory requirements are
# if code assistance is enabled. Remove this property or set to very large number if you need
# code assistance for any files available regardless their size.
#---------------------------------------------------------------------
idea.max.intellisense.filesize=2500

使用此
cd/Applications/Android\Studio.app/Contents/bin
Android和
Studio
之间的空间将不允许终端定位文件夹。