更改gradle这个build目录中的Android工作室? [英] Change gradle build directory in android studio?
本文介绍了更改gradle这个build目录中的Android工作室?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚安装的Android Studio和我刚学用摇篮打造。然而,默认的项目设置,我的版本是位于项目目录,我想有他们放在其他地方(preferably项目目录之外)。是否有可能实现这一目标?我在哪里做出改变?我做出怎样的改变?
I just installed Android Studio and I am just learning to build using Gradle. However, with the default project setup, my builds are located in the project directory and I would like to have them placed elsewhere (preferably outside of the project directory). Is it possible to achieve this? Where do I make a change and what change do I make?
推荐答案
在根的build.gradle
allprojects {
buildDir = "/path/to/build/${rootProject.name}/${project.name}"
}
另请参阅摇篮全球构建目录
和文档<一个href=\"https://gradle.org/docs/current/userguide/writing_build_scripts.html\">https://gradle.org/docs/current/userguide/writing_build_scripts.html
这篇关于更改gradle这个build目录中的Android工作室?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文