Application or activity takes time to load some times

后端 未结 3 2054
天命终不由人
天命终不由人 2020-12-11 20:50

I have created a startup activity from where I am calling another activity which has a view pager and shows some introductory pages.

This app was taking time to loa

3条回答
  •  旧时难觅i
    2020-12-11 21:42

    There is a strange issue with newly released Android Studio 2.0 (same issue in 2.1) first time of launching application take longer than usual (e.g. 2, 3 seconds or sometimes screen blinks or goes black) this issue happens only in debug mode and not effect your released APK.

    A temporary solution to fix this is disabling instant run:

    Settings → Build, Execution, Deployment → Instant Run and uncheck Enable Instant Run
    

提交回复
热议问题