Android的工作室是非常缓慢 [英] Android Studio is very slow
问题描述
我有大约内20个模块的项目。摇篮清洁大约需要5分钟。由于ELL如果我添加一个新的Gradle模块更新项目的需求超过5min。
I have a project with about 20 modules inside. Gradle clean takes about 5min. As ell if i add a new module gradle update projects needs more than 5min.
有不依赖于外部库。相关性只有几个模块之间的项目中。
There are no dependencies to external libraries. Dependencies are only inside the project between several modules.
我有没有相同的gradle项目,它能正常工作。我没有转换旧项目摇篮。我已创建了由gradle这个recomended文件结构一个新项目。但这样的表现,这不是非常有用...
I had same Project without gradle and it worked fine. I did not convert the old project to gradle. I have created a new project with the file structure recomended by gradle. But with this performance this is not very usefull...
任何想法与gradle这个问题呢?
Any idea what's going wrong with gradle?
推荐答案
只要创建一个文件在以下目录中名为gradle.properties:
Just create a file named gradle.properties in the following directory:
/home/<username>/.gradle/ (Linux)
/Users/<username>/.gradle/ (Mac)
C:Users<username>.gradle (Windows)
这行添加到文件:
org.gradle.daemon=true
来源:<一个href=\"https://www.timroes.de/2013/09/12/speed-up-gradle/\">https://www.timroes.de/2013/09/12/speed-up-gradle/
这篇关于Android的工作室是非常缓慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!