Mar*_*lic 8 javascript android react-native
我正在关注这里的入门教程: 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
Run Code Online (Sandbox Code Playgroud)
问题是什么?
您已经在同一端口的后台运行了一个 React Native 进程。
使用ps -ef | grep react
进程 id 然后终止该进程
kill -9 pid
然后重新执行命令:
react-native run-android
| 归档时间: |
|
| 查看次数: |
13968 次 |
| 最近记录: |