# Android Studio Gradle构建速度优化

1.

create a file named gradle.properties in the following directory:

Add this line to the file:
org.gradle.daemon=true


From now on Gradle will use a daemon to build, whether you are using Gradle from command line or building in Android Studio. You could also place the gradle.properties file to the root directory of your project and commit it to your SCM system. But you would have to do this, for every project (if you want to use the daemon in every project).

Android Studio 1.1.0+版本中该配置已经默认打开。

2.