Android Studio Gradle 构建加速 [英] Android studio Gradle build speed up

查看:36
本文介绍了Android Studio Gradle 构建加速的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自上次更新(从 6 月 25 日开始构建)以来,Android Studio Gradle 中的任何更改都非常缓慢.当您编辑文件并在 keyup 上重新编译时,它似乎也会自动跟踪更改.

在我的 i5 上,每次更改都需要几分钟时间.

知道如何加快 Gradle 更改的速度吗?

解决方案

开发人员正在解决这个问题.就像我在 这个答案 中发布的一样,目前最快的解决方案是从命令行使用 gradle,您应该切换到二进制库对于您未开发的所有模块.在 g+ 上,与开发人员进行了讨论.>

Since the last update (Build from june 25) any changes in the Android studio Gradle is painfully slow. And it also seems to autotrack changes when you edit the file and recompile on keyup.

Each change takes several minutes on my i5.

Any idea how I can speed up my Gradle changes?

解决方案

The dev are working on it. Like I posted in this answer the fastest solution right now is to use gradle from the command line and you should switch to binary libs for all modules you do not develop. On g+ there is a discussion with the developers about it.

这篇关于Android Studio Gradle 构建加速的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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