减少android studio 2.1编译时间 [英] Decreasing android studio 2.1 build time

查看:154
本文介绍了减少android studio 2.1编译时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我之前使用的是android studio 1.5,并且我刚刚升级到2.1。但是更新后,我的构建需要更多的时间(从现在的15秒到2分钟)。

在这里提到的事情


在设置中启用离线工作



  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屋!

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