无法通过模拟器运行React-Native应用

时间:2020-04-27 17:18:37

标签: javascript android reactjs react-native

C:\Projects\albums>npx react-native run-android

info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.

info Starting JS server...
* daemon not running; starting now at tcp:5037
* daemon started successfully
error Failed to launch emulator. Reason: Emulator exited before boot..
warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.
info Installing the app...
Error occurred during initialization of VM
Failed setting boot class path.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

    at makeError (C:\Projects\albums\node_modules\execa\index.js:174:9)
    at C:\Projects\albums\node_modules\execa\index.js:278:16
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async runOnAllDevices (C:\Projects\albums\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:5)
    at async Command.handleAction (C:\Projects\albums\node_modules\@react-native-community\cli\build\index.js:186:9)

这是我在运行应用程序时遇到的错误。 你能帮我吗?

0 个答案:

没有答案