title: React Native wont run on Android Device. Missing ANDROID_HOME
body: <p>When I execute <strong>react-native run-android</strong> in the terminal, I get the following:</p>
  
  <blockquote>
    <p>JS server already running.
    Running adb -s HT68X0201778 reverse tcp:8081 tcp:8081</p>
    
    <p>Building and installing the app on the device (cd
    android &amp;&amp; ./gradlew installDebug)... Failed to notify
    ProjectEvaluationListener.afterEvaluate(), but primary configuration
    failure takes precedence. java.lang.RuntimeException: SDK location not
    found. Define location with sdk.dir in the local.properties file or
    with an ANDROID_HOME environment variable.</p>
    
    <p>FAILURE: Build failed with an exception.</p>
    
    <p>Where: Build file '........./android/app/build.gradle'
    line: 110</p>
    
    <p>What went wrong: A problem occurred evaluating project ':app'.</p>
    
    <blockquote>
      <p>SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.</p>
    </blockquote>
    
    <p>Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.</p>
  </blockquote>
  
  <p>I have already done the following: Installed  the Android Studio 2.2.3. I checked the boxes in the installer that it said to on the RN website. I installed Marshmallow SDK, AVD, HAXM, and JDK 1.8. I added ANDROID_HOME to /.bashrc and even executed <strong>set ANDROID_HOME=~/Library/Android/sdk</strong> on the terminal. (I double-checked the path.) I am running on react-native-cli version 2.0.1. Operating system is Mac OS Sierra.</p>
  
  <p>I'm not sure where to go from here. Any help would be appreciated.</p>
  
  <p>Thanks! --Anthony</p>