title: Using environment variables for Gradle builds in Android Studio
body: <p>We decided to use GitHub as our version control. I know the <a href="https://en.wikipedia.org/wiki/Gradle" rel="nofollow">Gradle</a> build scripts use certain paths, such as the Android SDK path in the <code>local.properties</code> file.  </p>
  
  <p>Since this path will differ between the five of us, I think the projects will fail to build on my teammates' machines when they pull changes from GitHub. Is this correct?</p>
  
  <p>If so, can we all make an environment variable called something like <code>ANDROID_SDK</code> and use that for the <code>sdk.dir</code> in the <code>local.properties</code>?  Would the project properly build on all of our machines if we used the environment variable? Are there any other places where we may need to set 
  a similar environment variable? Will this work? If so, how do we do this?</p>
  
  <p>I am not sure if this is the best way to go about setting up a team project for Android. I'm looking for suggestions on a best practice for this.  </p>