简体   繁体   中英

Change default of Android Studio build.gradle

Currently, when I create a new Android Studio project, the project build.gradle file looks like so (in part):

buildscript {
    repositories {
        jcenter()
    }

Because I'm behind a firewall, I have to manually change it to this:

buildscript {
    repositories {
        jcenter {
            url "http://jcenter.bintray.com/"
        }

Not a big deal, but is there a way to have Android Studio do this by default?

您可能可以在以下路径中更改默认模板:

<android-studio>/plugins/android/lib/templates/gradle-projects/NewAndroidProject/root/build.gradle.ftl

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM