Issue in gradle 2.1.0 : Application launches with delay of 5-6 seconds

走远了吗. 提交于 2019-12-10 18:31:59

问题


I have an application which was working fine with gradle 1.5.0. Application use to launch instantly after gradle build.

But when I changed the gradle to gradle 2.1.0 it launches with a delay of 5-6 seconds for first time after gradle build. I have tested with some of my other apps also in those apps also same issue persists.

Then I changed the gradle version back to gradle 1.5.0 then again my app started working fine without any delay.

So, it seems like there is an issue with gradle 2.1.0.

Moreover, I noticed one more thing that when I run the app with gradle 2.1.0 then the cache memory of app shows around 11-12 MB after first time launch without performing registration or any other action in app

While on running with gradle 1.5.0 cache memory size remains around 15-17KB.


回答1:


This issue came in new android studio version due to instant run feature when you disable instant run feature first time launch delay will be gone.



来源:https://stackoverflow.com/questions/37717705/issue-in-gradle-2-1-0-application-launches-with-delay-of-5-6-seconds

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!