-2
Create a new project in React Activate with tamplete in typescript and while running the android Yarn command or even the npx React-Native run-android I am getting the following error:
error Failed to start the app.
Error: spawnSync adb ENOENT
at Object.spawnSync (internal/child_process.js:1041:20)
at Object.spawnSync (child_process.js:616:24)
at Function.module.exports.sync (/home/thayller/Developer/estudo/rocketseat/gostack
11/appgobarber/node_modules/execa/index.js:334:30)
at tryLaunchAppOnDevice (/home/thayller/Developer/estudo/rocketseat/gostack
11/appgobarber/node_modules/@react-native-community/cli-platform-
android/build/commands/runAndroid/tryLaunchAppOnDevice.js:57:22)
at /home/thayller/Developer/estudo/rocketseat/gostack 11/appgobarber/node_modules/@react-
native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:104:39
at Array.forEach (<anonymous>)
at runOnAllDevices (/home/thayller/Developer/estudo/rocketseat/gostack
11/appgobarber/node_modules/@react-native-community/cli-platform-
android/build/commands/runAndroid/runOnAllDevices.js:102:48)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Command.handleAction (/home/thayller/Developer/estudo/rocketseat/gostack
11/appgobarber/node_modules/@react-native-community/cli/build/index.js:186:9)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Someone who’s been through the same thing or who understands what’s going on to help me, because I haven’t found out for the moment
Take a look at the PATH and make sure the path to the Android SDK is present.
– Augusto Vasques