title: Issue while running "npx react-native run-android". How to solve it?
body: <p>Created a project using <code>npx react-native init AwesomeProject</code>. While running <code>npx react-native run-android</code> in other terminal, I am getting the following error. I tried to follow React Native CLI Quickstart in <a href="https://reactnative.dev/docs/environment-setup" rel="nofollow noreferrer">https://reactnative.dev/docs/environment-setup</a>. I have installed python2, openjdk8, nodejs separately, later deleted them and reinstalled using chocolatey. I have reinstalled AndroidSDK tools, AVD multiple times still getting the same error.</p>
  <pre><code>info Running jetifier to migrate libraries to AndroidX. You can disable it using &quot;--no-jetifier&quot; flag.
  Jetifier found 967 file(s) to forward-jetify. Using 8 workers...
  info Starting JS server...
  'C:\Users\Raja' is not recognized as an internal or external command,
  operable program or batch file.
  info Launching emulator...
  'C:\Users\Raja' is not recognized as an internal or external command,
  operable program or batch file.
  'C:\Users\Raja' is not recognized as an internal or external command,
  operable program or batch file.
  
  error Failed to launch emulator. Reason: Could not start emulator within 30 seconds..
  warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.
  info Installing the app...
  Starting a Gradle Daemon (subsequent builds will be faster)
  
  Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
  Use '--warning-mode all' to show the individual deprecation warnings.
  See https://docs.gradle.org/6.2/userguide/command_line_interface.html#sec:command_line_warnings
  
  FAILURE: Build completed with 2 failures.
  
  1: Task failed with an exception.
  -----------
  * Where:
  Build file 'C:\Users\Raja Naveen\Desktop\AwesomeProject\android\app\build.gradle' line: 84
  
  * What went wrong:
  A problem occurred evaluating project ':app'.
  &gt; Could not open dsl remapped class cache for 7f1u5qpw1jm8dwv3ri20amyrz (C:\Users\Raja Naveen\.gradle\caches\6.2\scripts-remapped\react_dysq7qqrljy3c2uubmf33rsun\7f1u5qpw1jm8dwv3ri20amyrz\dslcf39471ad2848fb82befe662c0627ed4).
     &gt; 0
  
  * 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.
  ==============================================================================
  
  2: Task failed with an exception.
  -----------
  * What went wrong:
  A problem occurred configuring project ':app'.
  &gt; compileSdkVersion is not specified.
  
  * 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 6m 33s
  
  error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
  Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081```
  </code></pre>