Android之如何让Android studio编译更快
生活随笔
收集整理的這篇文章主要介紹了
Android之如何让Android studio编译更快
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1、 開啟gradle單獨的守護進程
在下面的目錄下面創建gradle.properties文件 /home/<username>/.gradle/ (Linux) /Users/<username>/.gradle/ (Mac) C:\Users\<username>\.gradle (Windows)最好是從一個項目里面拷貝過來然后修改下 #Project-wide Gradle settings.# IDE (e.g. Android Studio) users: # Settings specified in this file will override any Gradle settings # configured through the IDE.# For more details on how to configure your build environment visit # http://www.gradle.org/docs/current/userguide/build_environment.html# The Gradle daemon aims to improve the startup and execution time of Gradle. # When set to true the Gradle daemon is to run the build. # TODO: disable daemon on CI, since builds should be clean and reliable on servers org.gradle.daemon=true# Specifies the JVM arguments used for the daemon process. # The setting is particularly use
總結
以上是生活随笔為你收集整理的Android之如何让Android studio编译更快的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux之类似Windows的资源管理
- 下一篇: Android之解决java.lang.