I came across few examples for latest gradle build tools and android studio at link :
http://tools.android.com/tech-docs/new-build-system : gradle-samples-0.14.0.zip
In all the examples the build.gradle contained a line : System.env.CUSTOM_BUILDTOOLS I am unable to find the source where this variable is defined Check the below mentioned build.gradle example
ext {
buildToolsVersion = System.env.CUSTOM_BUILDTOOLS != null ? System.env.CUSTOM_BUILDTOOLS : ‘20.0.0’ }
buildscript {
def gradleVersion = System.env.CUSTOM_GRADLE != null ? System.env.CUSTOM_GRADLE : ‘0.14.0’
repositories {
if (System.env.CUSTOM_REPO != null) {
maven { url System.env.CUSTOM_REPO }
} else {
mavenCentral()
}
}
dependencies {
classpath “com.android.tools.build:gradle:$gradleVersion”
} }