всякий раз, когда я пытаюсь запустить эмулятор из команды, я получаю эту проблему, но я могу без проблем открыть эмулятор в студии Android
Код: Выделить всё
> react-native run-android
* daemon not running; starting now at tcp:5037
* daemon started successfully
info Launching emulator...
error Failed to launch emulator. Reason: The emulator (INFO | Storing crashdata in: C:\Users\arunk\AppData\Local\Temp\\AndroidEmulator\emu-crash-34.1.18.db, detection is enabled for process: 13500) quit before it finished opening. You can try starting the emulator manually from the terminal with: C:\Users\arunk\AppData\Local\Android\Sdk/emulator/emulator @INFO | Storing crashdata in: C:\Users\arunk\AppData\Local\Temp\\AndroidEmulator\emu-crash-34.1.18.db, detection is enabled for process: 13500.
warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.
info Installing the app...
Код: Выделить всё
BUILD FAILED in 19s
error Failed to install the app. Command failed with exit code 1: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:installDebug'. > com.android.builder.testing.api.DeviceException: No online devices found. * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. > Get more help at https://help.gradle.org. BUILD FAILED in 19s.
Я пытаюсь запустить эмулятор Android с помощью использования
Код: Выделить всё
npm run android
Код: Выделить всё
npx react-native run-android
но каждый раз происходит сбой и возникает проблема с журналами emu-crash.db
пытаюсь удалить и этот файл журнала
также пытался запустить другую версию React Native
Подробнее здесь: https://stackoverflow.com/questions/781 ... e-it-finis