Al Lelopath Al Lelopath -4 years ago 161
Android Question

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?

Answer Source

You can probably change the default template at the path:

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download