Lauch屏幕在启动时显示android中的白屏时间过长 [英] Lauch screen showing white screen in android for too long at start up

查看:112
本文介绍了Lauch屏幕在启动时显示android中的白屏时间过长的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是,每次我第一次启动我的应用程序时.它显示了至少40秒的白色屏幕,这显然比我在android studio中了解APK分析器的时间还长.所以我用了它,然后发现libs文件夹占用了总大小的93%,所以我尝试删除所有未使用的库并进行了检查.大小变成了总应用程序的74%,我还看到启动时间减少了20秒,但22秒仍然很多.我不知道该怎么解决.即使我显示启动屏幕22秒,等待仍然很多. 抱歉,我在另一台笔记本电脑上,所以我什么也不显示,我仅在启动时显示2个按钮,因此启动屏幕不会成为问题.有人可以帮我解决这个问题吗,或者至少可以将启动时间降低到10秒以下.谢谢:)

My problem is that every time i used to launch my app for the very first time. It showed a white screen for at-least 40 secs which was obviously too long than i learned about APK Analyzer in android studio. So i used it and i saw that libs folder was taking 93% of total size so i tried to remove all non used libraries and checked . The size became 74% of total app and i also saw a decrease of 20 secs in launch time but 22 secs is still a lot. I don't know how to solve this. Even if i show splash screen 22 secs wait is still a lot. Sorry i am on other laptop so i can't show anything and i am just showing 2 buttons on startup so start screen can't be an issue. Can some one please help me solve this or atleast bring startup time to below 10 secs. Thank you :)

推荐答案

转到文件->设置->构建,执行,部署->即时运行

Go to File -> Setting -> Build,Execution, Deployment-> Instant Run

取消选中启用即时运行"(如果已选中),然后运行项目并通知我.

uncheck the Enable instant run if it is checked, then run the project and let me know.

这篇关于Lauch屏幕在启动时显示android中的白屏时间过长的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆