title: Task 'installDebug' not found in project ':app' - run-android after creating project
body: <p>After creating a react native project, I tried to run it on my android device. I enter <code>adb devices</code> into the terminal, I saw my device. I ran <code>react-native run-android</code>. And after a while <code>Task 'installDebug' not found in project ':app'</code> popped up.</p>
  
  <pre><code>Jetifier found 962 file(s) to forward-jetify. Using 4 workers
  ...info Starting JS server...
  'D:\Android\android-sdk\platform-tools' is not recognized as an internal or external command, operable program or batch file.
  info Launching emulator...
  error 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.
  info Installing the app...
  
  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.0.1/userguide/command_line_interface.html#sec:command_line_warnings
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  Task 'installDebug' not found in project ':app'.
  
  * Try:
  Run gradlew tasks to get a list of available tasks. 
  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 15s
  
  error Failed to install the app. Make sure you have the Android development environment set up:
  https://reactnative.dev/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.
  Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8
  081
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  Task 'installDebug' not found in project ':app'.
  </code></pre>
  
  <p>Here is react-native info</p>
  
  <pre><code>info Fetching system and libraries information...
  System:
      OS: Windows 7 6.1.7601
      CPU: (4) x64 Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz
      Memory: 881.91 MB / 3.97 GB
    Binaries:
      Node: 10.16.1 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.17.3 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
      npm: 6.9.0 - C:\Program Files\nodejs\npm.CMD
      Watchman: Not Found
    SDKs:
      Android SDK: Not Found
    IDEs:
      Android Studio: Version  3.2.0.0 AI-181.5540.7.32.5014246
    Languages:
      Python: Not Found
    npmPackages:
      @react-native-community/cli: Not Found
      react: 16.11.0 =&gt; 16.11.0
      react-native: 0.62.0 =&gt; 0.62.0
    npmGlobalPackages:
      *react-native*: Not Found
  </code></pre>
  
  <p>I ran <code>gradlew tasks</code> and I did not see <code>installDebug</code> under the install tasks. I am sure that I set up the environment variables correctly, including android SDK, JDK. I tried reinstalling react-native. I put the location of my sdk in local.properties under android folder. I ran <code>gradlew installDebug</code> and <code>installDebug not found in root project '[app's name]'</code> appeared. None of the solutions on the internet worked.</p>
  
  <p>Can anyone please help me to sort out this?
  Thank you.</p>