ANR警告:OnMeasure时间过长

时间:2019-06-20 11:02:17

标签: android android-anr-dialog

当我运行该应用程序时,内容需要花费一些时间才能加载到Activity上,我正在使用Volley进行异步请求,因此这不是问题。 问题出在渲染时。

D/View: [ANR Warning]onMeasure time too long, this =android.widget.RelativeLayout{44d79d5 V.E...... ......I. 0,0-1080,1500}time =406 ms
    [ANR Warning]onMeasure time too long, this =android.support.v4.widget.NestedScrollView{fd9f5ea VFED..... ......I. 0,0-1080,1500}time =406 ms
D/skia: SkJpegCodec::onGetPixels -
D/View: [ANR Warning]onMeasure time too long, this =android.widget.RelativeLayout{be528f6 V.E...... ......I. 0,180-1080,1848 #7f090110 app:id/rl}time =425 ms
I/art: Do partial code cache collection, code=228KB, data=227KB
D/View: [ANR Warning]onMeasure time too long, this =android.support.design.widget.CoordinatorLayout{5b730db V.E...... ......ID 0,72-1080,1920}time =429 ms
I/art: After code cache collection, code=216KB, data=214KB
    Increasing code cache capacity to 1024KB
D/View: [ANR Warning]onMeasure time too long, this =android.support.v4.widget.DrawerLayout{444b778 VFED..... ......ID 0,0-1080,1920 #7f090076 app:id/drawer_layout}time =430 ms
D/View: [ANR Warning]onMeasure time too long, this =android.support.v7.widget.ContentFrameLayout{ff8de51 V.E...... ......ID 0,0-1080,1920 #1020002 android:id/content}time =430 ms
    [ANR Warning]onMeasure time too long, this =android.support.v7.widget.FitWindowsLinearLayout{45986b6 V.E...... ......ID 0,0-1080,1920 #7f09001d app:id/action_bar_root}time =431 ms
    [ANR Warning]onMeasure time too long, this =android.widget.FrameLayout{7edffb7 V.E...... ......ID 0,0-1080,1920}time =431 ms
D/View: [ANR Warning]onMeasure time too long, this =android.widget.LinearLayout{2c9d324 V.E...... ......ID 0,0-1080,1920}time =432 ms
    [ANR Warning]onMeasure time too long, this =DecorView@d524ced[Dashboard]time =432 ms

0 个答案:

没有答案