title: Android SDK location not found
body: <p>I'm trying to test and build my android app using Jenkins locally on my machine. I'm on Linux and I launched Jenkins through docker by running the following command:</p>
  <pre><code>docker run -p 8080:8080 -p 50000:50000 jenkins/jenkins
  </code></pre>
  <p>Then I opened up my browser and fired Jenkins from <code>localhost:8080</code>. After the initial setup, I added the environment variable with following steps:</p>
  <ol>
  <li>Go to Manage Jenkins</li>
  <li>Configure System</li>
  <li>Go to Global Properties</li>
  <li>Check Environment variables</li>
  <li>Add <code>ANDROID_SDK_ROOT</code> and <code>ANDROID_HOME</code> environment variables in there</li>
  <li>Click Apply and Save</li>
  </ol>
  <p>Here's how it looks in Jenkins on my machine:
  <a href="https://i.stack.imgur.com/gz46w.png" rel="noreferrer"><img src="https://i.stack.imgur.com/gz46w.png" alt="enter image description here" /></a></p>
  <p>Basically followed steps from this answer: <a href="https://stackoverflow.com/a/29231580/4954322">https://stackoverflow.com/a/29231580/4954322</a></p>
  <p>I also added the same environment variables in my <code>~/.zshrc</code> file too:</p>
  <pre><code>export ANDROID_SDK_ROOT=/home/harry/Android/Sdk/
  export ANDROID_HOME=/home/harry/Android/Sdk/
  </code></pre>
  <p>I'm using <code>Use Gradle Wrapper</code> in the Build section of the project configuration with the following commands:</p>
  <pre><code>clean
  testDebugUnitTes
  assembleDebugBuild
  </code></pre>
  <p>After following all of these steps, my build is still failing with message:</p>
  <pre><code>FAILURE: Build failed with an exception.
  
  * What went wrong:
  A problem occurred configuring project ':app'.
  &gt; SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable
  or by setting the sdk.dir path in your project's local properties 
  file at '/var/jenkins_home/workspace/MeteorDebugBuild/local.properties'.
  </code></pre>
  <p>My question is how can I fix this error and why the build is still failing with all of this setup?</p>