title: react native spawnSync $HOME/Android/Sdk/platform-tools/adb ENOENT at Object.spawnSync
body: <p>I am getting the below error while trying to run the following command :
  <strong>sudo react-native run-android</strong></p>
  <p>I have tried all the approches from here but to no avail:
  <a href="https://stackoverflow.com/questions/38835931/react-native-adb-reverse-enoent">React Native adb reverse ENOENT</a></p>
  <p>Moreover the problem did not occur when I run the same command without using sudo ,I further tried updating adb and copying the root Android folder to $USERS/Android but none of the approaches worked . Would be very great if I could recieve some help in this</p>
  <pre><code>debug Running command &quot;$HOME/Android/Sdk/platform-tools/adb -s f4de483e reverse tcp:8081 tcp:8081&quot;
  warn Failed to connect to development server using &quot;adb reverse&quot;: spawnSync $HOME/Android/Sdk/platform-tools/adb ENOENT
  info Starting the app on &quot;f4de483e&quot;...
  debug Running command &quot;$HOME/Android/Sdk/platform-tools/adb -s f4de483e shell am start -n com.grej_frontend/com.grej_frontend.MainActivity&quot;
  error Failed to start the app.
  Error: spawnSync $HOME/Android/Sdk/platform-tools/adb ENOENT
      at Object.spawnSync (internal/child_process.js:1002:20)```
  </code></pre>