且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Android Studio需要很长时间才能在真实设备上运行应用程序

更新时间:2023-10-20 15:23:22

Android Studio非常耗资源。我使用了带有Core 2 Duo和2.5 GB RAM的老式索尼,并且为操作系统运行了大约200MB的调整系统。建立一个项目需要大约10分钟或更长的时间。



我的建议是,将您的笔记本电脑RAM升级到4GB或更高。 8GB应该够了。
现在,我正在使用4GB和Corei5,Android Studio采用< 1分钟运行一个项目,但它取决于项目大小及其依赖项。



- 更新 -



Windows 10的默认设置将使用大约90%以上的磁盘,这将使您的构建过程变得更慢。您可以通过关闭Show Me About Windows将其降低至


在Windows菜单中,转到设置,然后进入系统,然后去
通知和操作。关闭Show Me Tips About Windows

forum / id-2813275 / disk-usage-100.htmlrel =nofollow>磁盘使用率始终为100%

I have a Laptop with a Core i3 processor and a 2GB of RAM, and I am using my Sony Xperia C as an alternative to the Emulator. When I click on debug and choose my mobile device, the Gradle starts building and it takes about 5 to 10 minutes to finish. I understand that I have very low resources but I doubt that there is another reason why it takes too long time to finish building and running the app.

I noticed in the logcat tab that it is spending the time on sending a request and waiting for a response repeatedly..

Can anyone tell me if the problem is with the hardware resources or my doubts are true about the cause being something else.

Android Studio is very resource hungry. I use an old Sony with Core 2 Duo and 2.5 GB of RAM, with tweaked system that running about 200MB for the operating system. It takes about 10 minutes or more to build a project.

My suggestion, upgrade your Laptop RAM to 4GB or more. 8GB should be enough. Now I'm working with 4GB and Corei5 where Android Studio take about < 1 minutes to run a project, but it depends of the project size and its dependencies.

-- UPDATE --

Default setting of Windows 10 will use about >90% of your disk which will make your building process much more slower. You could decrease it to <12% by simply turning off "Show Me About Windows":

From the Windows Menu, go to Settings, then go to System and then go to Notifications and Actions. Turn off "Show Me Tips About Windows"

update reference: Disk usage always at 100%