一.Android分三种闪退情况,均可用adb命令输出crash日志。1、app无任何提示,直接闪退(最普遍)先清除之前的日志:adblogcat-c操作闪退步骤后,输出干净的闪退日志:adblogcat-bcrash>error.txt2、app弹窗提示:程序意外终止adbbugreport>log.txt搜索fatalexception或者crash;3、ANR无反应app出现anr时会在data/anr目录下生成traces.txt文件adbpulldata/anr/traces.txt>anr_log.txttraces.txt文件里存放设备所有app的anr日志打开日志文件,搜索包名