The application may be doing too much work on its main thread

前端 未结 17 1903
挽巷
挽巷 2020-11-21 07:34

I am new to Android SDK/API environment. It\'s the first I am trying to draw a plot/chart. I tried running different kinds of sample codes the emulator using 3 different fre

17条回答
  •  时光取名叫无心
    2020-11-21 08:06

    As others answered above, "Skipped 55 frames!" means some heavy processing is in your application.

    For my case, there is no heavy process in my application. I double and triple checked everything and removed those process I think was a bit heavy.

    I removed Fragments, Activities, Libraries until only the skeleton was left. But still the problem did not go away. I decided to check the resources and found some icons and background I use are pretty big as I forgot to check the size of those resources.

    So, my suggestion is if none of the above answers help, you may also check your resource files size.

提交回复
热议问题