0

I freshly installed the react native from my mac now when I start running the application there is error shown it says Failed to start the app.

Steps I already did:

  1. Add the local.properties in the android folder
  2. Clear Data in android emulator
  3. Update the avg

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...

Task :app:compileDebugJavaWithJavac

Task :app:stripDebugDebugSymbols Unable to strip the following libraries, packaging them as they are: libc++_shared.so, libevent-2.1.so, libevent_core-2.1.so, libevent_extra-2.1.so, libfb.so, libfbjni.so, libflipper.so, libfolly_futures.so, libfolly_json.so, libglog.so, libglog_init.so, libhermes-executor-common-debug.so, libhermes-executor-common-release.so, libhermes-executor-debug.so, libhermes-executor-release.so, libhermes-inspector.so, libimagepipeline.so, libjsc.so, libjscexecutor.so, libjsijniprofiler.so, libjsinspector.so, libnative-filters.so, libnative-imagetranscoder.so, libreact_codegen_reactandroidspec.so, libreact_nativemodule_core.so, libreactnativeblob.so, libreactnativejni.so, libreactnativeutilsjni.so, libreactperfloggerjni.so, libturbomodulejsijni.so, libyoga.so.

Task :app:installDebug Installing APK 'app-debug.apk' on 'Pixel_4_API_30(AVD) - 11' for app:debug Installed on 1 device.

BUILD SUCCESSFUL in 16s 29 actionable tasks: 29 executed 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 (internal/child_process.js:1074:20) at Object.spawnSync (child_process.js:629:24) at Function.module.exports.sync (/Users/sunmoontech/Desktop/isn_mob_app/node_modules/execa/index.js:334:30) at tryLaunchAppOnDevice (/Users/sunmoontech/Desktop/isn_mob_app/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/tryLaunchAppOnDevice.js:58:22) at /Users/sunmoontech/Desktop/isn_mob_app/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:104:39 at Array.forEach () at runOnAllDevices (/Users/sunmoontech/Desktop/isn_mob_app/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:102:48) at processTicksAndRejections (internal/process/task_queues.js:95:5) at async Command.handleAction (/Users/sunmoontech/Desktop/isn_mob_app/node_modules/react-native/node_modules/@react-native-community/cli/build/index.js:186:9) info Run CLI with --verbose flag for more details.

DevGe
  • 1,249
  • 2
  • 23
  • 53
  • 1
    `react-native` is not able to find emulator/real device as your Android SDK path is not set. You can either launch it manually or run application in Android Studio. If you've connected real device do `add --devices` to get list of connected devices. You can check [this](https://stackoverflow.com/questions/59355688/how-to-solve-the-error-failed-to-launch-emulator-reason-no-emulators-found-as). – Rohit Aggarwal Aug 04 '21 at 03:13

0 Answers0