Android Studio 使用Profiler时App闪退

时间:2024-04-09 14:36:03

Android Studio 使用Profiler时App闪退

问题描述

今天尝试学习一下分析app资源使用情况,按照网上的方法打开了profiler,刚开始的时候能正常显示
Android Studio 使用Profiler时App闪退
但是当我操作一会儿app的时候,app闪退了,profiler显示也停止了。
在重复尝试了几次之后发现 我点击start a new profiling session(profiler的加号)Android Studio 使用Profiler时App闪退
出现两个进程,一个 com.xx.app 另一个 com.xx.app:mult
我点击前面的那个就会闪退,而点击后面那个就不会闪退。
原因未知,感觉和multidex以及android版本有关。

Debug遇到相似的情况

debug模式打断点,走到断点处几秒钟之后app闪退。attach debugger to android process里也有两个进程。也是点com.xx.app会闪退,点com.xx.app:mult不会闪退。

有没有大佬能解释的