Change gradle build directory in android studio?

后端 未结 3 825
伪装坚强ぢ
伪装坚强ぢ 2020-12-08 16:55

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 w

3条回答
  •  感动是毒
    2020-12-08 17:36

    in root build.gradle

    allprojects {
        buildDir = "/path/to/build/${rootProject.name}/${project.name}"
    }
    

    See also Gradle global build directory

    and docs https://gradle.org/docs/current/userguide/writing_build_scripts.html

提交回复
热议问题