Trying to launch new project and getting this error.
What went wrong: Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
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'.
- Try:
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.
- Get more help at https://help.gradle.org
BUILD FAILED in 2s
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)