title: Git / Heroku: SDK location not found
body: <p>I have a project stored in <strong>Github</strong> and linked to <strong>Travis</strong> for CI. This combination works. Now I'm trying to deploy this code to <strong>Heroku</strong>. However, my pushes to Heroku (with <code>git push heroku master</code>) are returning me this error:</p>
  
  <pre><code> remote:        FAILURE: Build failed with an exception.
      remote:
      remote:        * What went wrong:
      remote:        A problem occurred configuring project ':app'.
      remote:        &gt; SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
      remote:
      remote:        * Try:
      remote:        Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
      remote:
      remote:        BUILD FAILED
      remote:
      remote:        Total time: 40.505 secs
      remote:
      remote:  !     ERROR: Failed to run Gradle!
      remote:        We're sorry this build is failing. If you can't find the issue in application
      remote:        code, please submit a ticket so we can help: https://help.heroku.com
      remote:        You can also try reverting to the previous version of the buildpack by running:
      remote:        $ heroku buildpacks:set https://github.com/heroku/heroku-buildpack-gradle#previous-version
      remote:
      remote:        Thanks,
      remote:        Heroku
      remote:
      remote:  !     Push rejected, failed to compile Gradle app.
      remote:
      remote:  !     Push failed
      remote: Verifying deploy...
      remote:
      remote: !       Push rejected to (projectName).
      remote:
      To https://git.heroku.com/(projectName).git
       ! [remote rejected] master -&gt; master (pre-receive hook declined)
      error: failed to push some refs to 'https://git.heroku.com/(projectName).git'
  </code></pre>
  
  <p>It says I need to discriminate the SDK location in a <em>location.properties</em> file. </p>
  
  <p>Well, how could I? Doesn't Travis automatically installs SDK on every build? How could I point to something dinamically created?</p>
  
  <p>What am I missing?</p>