json - Android Studio Mac OSX : JSON File Size exceeds configured limit (2560000). 代码洞察功能不可用

标签 json macos android-studio

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

最佳答案

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

关于json - Android Studio Mac OSX : JSON File Size exceeds configured limit (2560000). 代码洞察功能不可用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36082070/

相关文章:

c# - ASMX 网络服务 - 返回 JSON 而不是 XML

javascript - 本地存储问题

macos - 有没有办法将 stash 文件夹(带有 . 前缀)添加到 SourceTree?

ruby-on-rails - 无法加载此类文件 -- ruby​​gems.rb

android - 如何在android studio中查看资料集报告

Android:将local.properties中的sdk.dir设置为ANDROID_HOME环境变量

android-studio - 如何让 Android studio 将 Android things raspberry PI 视为部署目标

javascript - 在对象内临时包装具有相同类型的数组项

json - 使用 Linux bash shell 和 Underscore 解析 JSON

macos - macOS Mojave 使用哪个链接器