title: React Native WebStorm Emulator cannot start - error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`
body: <p>I'm new to WebStorm and React Native and I encountered an error while setting up my environment that appears unique compared to the other post I've seen.</p>
  
  <h1>Objective</h1>
  
  <p>I've set up a default project in WebStorm, my goal is to run that project on an Android emulator, I'm using a Windows PC.</p>
  
  <h1>What I've tried</h1>
  
  <p>I've set up a simple Debug configuration in WebStorm </p>
  
  <p><a href="https://i.stack.imgur.com/DHAyr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DHAyr.png" alt="Picture of my debug configuration"></a></p>
  
  <p>I've also downloaded an Android Emulator thru Android Studio and I have it running on my computer.</p>
  
  <p><a href="https://i.stack.imgur.com/4BSfq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4BSfq.png" alt="Picture of android simulator running beside my WebStorm IDE"></a></p>
  
  <p>Now when I click on run for my debug emulator I get the following error:</p>
  
  <pre><code>info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
  Jetifier found 864 file(s) to forward-jetify. Using 4 workers...
  info JS server already running.
  'adb' is not recognized as an internal or external command,
  operable program or batch file.
  info Launching emulator...
  infoerror Installing the app... 
  Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`.
  warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.
  
  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 'C:\Users\Nicol\WebstormProjects\Dog\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 13s
  
  Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
  
  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 'C:\Users\Nicol\WebstormProjects\Dog\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 13s
  
      at checkExecSyncError (child_process.js:621:11)
      at execFileSync (child_process.js:639:15)
      at runOnAllDevices (C:\Users\Nicol\WebstormProjects\Dog\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:39)
      at processTicksAndRejections (internal/process/task_queues.js:93:5)
  error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.
  </code></pre>
  
  <h1>Other Information</h1>
  
  <p>Here is a picture of my Path System variables:</p>
  
  <p><a href="https://i.stack.imgur.com/z5DnH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z5DnH.png" alt="a picture of my Path System variables"></a></p>