背景
做了两年UE开发,现在需要重新拾起Android,要不八年Android开发经验就荒废了,太可惜了,所以新买的电脑装上最新Android studio,后面调试问题的时候,发现Logcat日志存储太小,一看这问题还不简单,当年不经常遇到吗?Android studio这个idea这么多年了,居然还有这垃圾问题。不就改一下Android Studio某个配置参数吗,随便一查,肯定一大堆解决问题的博客,然后一查的确一大堆博客,但是说的都不全面,坑的我都把最新Android Studio都删除了,安装老版本,问题依旧存在。到最后终于解决了,主要有三个地方
Android Studio bin目录下的idea.properties
打开bin目录下的idea.properties, 修改下面这个参数,我一般改为100M基本够用了
#---------------------------------------------------------------------
# This option controls console cyclic buffer: keeps the console output size not higher than the specified buffer size (KiB).
# Older lines are deleted. In order to disable cycle buffer use idea.cycle.buffer.size=disabled
#---------------------------------------------------------------------
idea.cycle.buffer.size=102400
修改Override console cycle buffer size
位置在Files->Settings->Editor->General->Console->Override console cycle buffer size
这个和第一个地方,有点重合,一般修改第一个地方就可以了,为了保险也给加上
修改Logcat cycle buffer 大小
位置在Files->Settings->Tools->LogCat->LogCat cycle buffer size
这个问题找了最久,大家的博客上都没说明,都只说了前面两个,导致一直没有成功。坑的我都去安装旧版本Android Studio