title: Error: Command failed: ./gradlew app:installDebug React Native
body: <p>Trying to launch new project and getting this error.</p>
  <ul>
  <li><p>What went wrong:
  Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.</p>
  <blockquote>
  <p>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 '/home/mobii/android/local.properties'.</p>
  </blockquote>
  <ul>
  <li>Try:</li>
  </ul>
  <blockquote>
  <p>Run with --stacktrace option to get the stack trace.
  Run with --info or --debug option to get more log output.
  Run with --scan to get full insights.</p>
  </blockquote>
  <ul>
  <li>Get more help at <a href="https://help.gradle.org" rel="nofollow noreferrer">https://help.gradle.org</a></li>
  </ul>
  <p>BUILD FAILED in 2s</p>
  <pre><code>at makeError (/home/mobii/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:174:9)
  at /home/mobii/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:278:16
  at processTicksAndRejections (node:internal/process/task_queues:96:5)
  at async runOnAllDevices (/home/mobii/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5)
  at async Command.handleAction (/home/mobii/node_modules/@react-native-community/cli/build/index.js:192:9)
  </code></pre>
  </li>
  </ul>