减少android studio 2.1编译时间 [英] Decreasing android studio 2.1 build time
问题描述
在这里提到的事情
在设置中启用离线工作
org.gradle.daemon = true
org.gradle.parallel = true
在gradle.properties文件中@
C:\ Users \.gradle(Windows)
但仍然没有区别。
官方消息来源:
< blockquote>
Windows Defender实时保护功能导致即时运行缓慢
跌落。将您的项目文件夹添加到windows defender的
排除列表中。
官方文档页面上的视频(即时运行 - 深度潜水) 即时运行在7:40左右(时间戳)提到了这一点。奇怪的是,他们还没有把它放在文字上。
I was using android studio 1.5 earlier and i just upgraded to 2.1.But after the update my builds are taking much more time(from 15 sec to 2 min now)
Things I have tried as mentioned here
Enabled offline work in Settings
org.gradle.daemon=true
org.gradle.parallel=true
in gradle.properties file @ C:\Users\.gradle (Windows)
But still no difference. How can I reduce the build time?
From official source:
Windows defender real time protection is causing instant run slow downs. Add your project folder to windows defender's list of exclusion.
The video (Instant Run - Deep dive) on the official documentation page for Instant Run has a mention of this at around 7:40 (timestamp). It is strange that they have not put this down as text.
这篇关于减少android studio 2.1编译时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!