启动屏幕在 android 中显示白屏时间过长
我的问题是每次我第一次启动我的应用程序时.它显示了至少 40 秒的白屏,这显然比我在 android studio 中了解 APK Analyzer 的时间要长.所以我使用了它,我看到 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.