报错: Can't create handler inside thread Thread[Timer-1,5,main] that has not called Looper.prepare() 排查: 通过打印线程名称,排查方法是否在子线程调用: LegoLog.d("当前线程:${Thread.currentThread().name}") // Logcat返回值:当前线程:Thread-1 修复: 如果是在子线程调用的,就将方法移到主线程中: runOnUiThread { manifestInspect()//放在主线程中 }