gpt4 book ai didi

javascript - JS 服务器已经在运行 React Native 应用程序

转载 作者:行者123 更新时间:2023-11-29 19:19:19 25 4
gpt4 key购买 nike

我从这里开始学习入门教程:https://facebook.github.io/react-native/docs/getting-started.html .我可以使用 react-native start 启动我的包管理器。但是运行应用程序本身总是会导致崩溃。

$ react-native run-android
JS server already running.
Building and installing the app on the device (cd android && gradlew.bat installDebug...
Error occurred during initialization of VM
Unable to use shared archive.
An error has occurred while processing the shared archive file.
Unable to unmap shared space.
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html

问题是什么?

最佳答案

您已经在同一端口的后台运行了一个 React Native 进程。

使用 ps -ef | grep react 然后使用进程 ID 终止进程kill -9 pid

然后重新执行命令:react-native run-android

关于javascript - JS 服务器已经在运行 React Native 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42752413/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com