G
G
GalileoGalileu2022-03-16 12:31:45
android studio
GalileoGalileu, 2022-03-16 12:31:45

Why can't I run react-native in Android studio on mac OS?

I can’t run the standard react native application in the emulator from android studio in any way. It gives
such an error (below the logs)
at first everything is fine but then


BUILD SUCCESSFUL in 35s
50 actionable tasks: 2 executed, 48 up-to-date
info Connecting to the development server...
warn Failed to connect to development server using "adb reverse": spawnSync adb ENOENT
info Starting the app...
error Failed to start the app.
Error: spawnSync adb ENOENT
at Object.spawnSync (node:internal/child_process:1111:20)
at Object.spawnSync (node:child_process:814:24)
at Function.module.exports.sync (/Users/user/VI/node_modules /execa/index.js:334:30)
at tryLaunchAppOnDevice (/Users/user/VI/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/tryLaunchAppOnDevice.js:58:22)
at /Users/user/VI/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:119:39
at Array.forEach()
at runOnAllDevices(/Users/user/ VI/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:117:48)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Command. handleAction (/Users/user/VI/node_modules/@react-native-community/cli/build/index.js:192:9)
info Run CLI with --verbose flag for more details.

A search in Yandex / Google did not give anything worthwhile
, they say that
warn Failed to connect to development server using "adb reverse": spawnSync adb ENOENT
is not even an error,
but then everything goes to hell

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question