提速的Andr​​oid演播室建筑 [英] Speed-up Android Studio Builds

查看:296
本文介绍了提速的Andr​​oid演播室建筑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

也许一个已知的问题,而是寻找各种方法来加快Android的工作室建立。我的是约20-25秒,并不可怕,但有点讨厌试图测试的增量变化的时候。

Perhaps a known question, but looking for ways to speed up Android Studio builds. Mine are about 20-25 sec, not terrible, but somewhat a nuisance when trying to test incremental changes.

显然得到一个更快的CPU会有所帮助,但寻找软件级别调整/提示到Android工作室,如果有任何。

Obviously getting a faster CPU would help, but looking for software level tweaks / tips to Android Studio if there are any.

感谢。

推荐答案

我能够减少构建时间为3-5秒。

I was able to reduce build times to 3-5 seconds.


  • 通过指定Android Studio和放大器使用更多的内存;摇篮

  • 配置编译并行运行

  • 编译按需

RAM设置在我看来,绝对必要的 - 给它2GB后,(我有24GB用大量备用)的用户界面是快速和活泼的&安培; code编辑是非常快,没有滞后的。

RAM settings are an absolute MUST in my opinion - after giving it 2GB (I have 24GB with plenty to spare) the UI is fast and snappy & code editing is very fast, no lag at all.

下面是我使用的指令的​​完整列表:

Here is the full list of instructions I used:

Android的工作室RAM设置:
https://extremegtx.word$p$pss.com/2015/01/08/android-studio-speed-up-studio-and-gradle/

Android Studio RAM Settings: https://extremegtx.wordpress.com/2015/01/08/android-studio-speed-up-studio-and-gradle/

说明适用于Windows,如果你是在Mac上使用下面的路径,而不是:
〜/资源库/ preferences / {} FOLDER_NAME /studio.vmoptions

Instructions are for Windows, if you're on MAC use the following path instead: ~/Library/Preferences/{FOLDER_NAME}/studio.vmoptions

摇篮设置:
http://jimulabs.com/2014/10/speeding-gradle-builds/

有关引用我运行的超频至强X5650 3.85GHz @和编译pretty的大项目有很多库和依赖。

For reference I am running an overclocked Xeon X5650 @ 3.85GHz and compiling a pretty big project with lots of libraries and dependencies.

这篇关于提速的Andr​​oid演播室建筑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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