主线程Sleep 造成ANR
kolacbb opened this issue · 3 comments
kolacbb commented
implementation 'com.github.YummyLau:Anchors:v1.1.4'
主线程Sleep,其他线程中没有以 Anchors Thread # 开头的线程
主线程调用栈
at java.lang.Thread.sleep (Native method)
at java.lang.Thread.sleep (Thread.java:442)
at java.lang.Thread.sleep (Thread.java:358)
at com.effective.android.anchors.AnchorsRuntime.tryRunBlockTask$anchors_release (AnchorsRuntime.java:92)
at com.effective.android.anchors.AnchorsManager.start (AnchorsManager.java:111)
JarvisGG commented
那是不是也侧面反映你有耗时操作啊
kolacbb commented
同样的 Task 迁移到阿里的 Alpha 之后不再后启动ANR的情况了
YummyLau commented
目前我们还没遇到anr,看下耗时操作