title: Error: Command failed: adb shell am start -n .MainActivity
body: <p>Currently I'm trying to run my react native application on my local device using react-native run-android. But I'm getting the following error:-</p>
  <blockquote>
  <p>info Connecting to the development server... warn Failed to connect to
  development server using &quot;adb reverse&quot;: spawnSync adb ENOENT info
  Starting the app... 'adb' is not recognized as an internal or external
  command, operable program or batch file. error Failed to start the
  app. Error: Command failed: adb shell am start -n
  com.tna/com.tna.MainActivity
  at makeError (C:\Users\deepali\Desktop\Jay\TNA-1-master\node_modules\execa\index.js:174:9)
  at Function.module.exports.sync (C:\Users\deepali\Desktop\Jay\TNA-1-master\node_modules\execa\index.js:338:15)
  at tryLaunchAppOnDevice (C:\Users\deepali\Desktop\Jay\TNA-1-master\node_modules@react-native-community\cli-platform-android\build\commands\runAndroid\tryLaunchAppOnDevice.js:58:22)
  at C:\Users\deepali\Desktop\Jay\TNA-1-master\node_modules@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:104:39
  at Array.forEach ()
  at runOnAllDevices (C:\Users\deepali\Desktop\Jay\TNA-1-master\node_modules@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:102:48)
  at processTicksAndRejections (internal/process/task_queues.js:93:5)
  at async Command.handleAction (C:\Users\deepali\Desktop\Jay\TNA-1-master\node_modules@react-native-community\cli\build\index.js:186:9) info Run CLI with --verbose flag for more details.</p>
  </blockquote>
  <p>My current node version is 12.14.0</p>