【发布时间】:2019-03-08 17:11:38
【问题描述】:
我正在尝试从 this github source 克隆 BlueWallet。
我克隆了项目并安装了所需的包。此外,模拟器运行 android studio AVD。
但每当我尝试运行 npm start android 时,它就会挂在文本 Loading dependency graph, done. 上,不会再发生任何事情!
这很奇怪,因为每当我尝试运行相同的场景和命令来启动连接到模拟器的纯 react-native 时,它都可以正常工作。
npm start android 的结果如下:
$ npm start android
> BlueWallet@3.8.3 start /home/Learning/ReactNative/BlueWallet
> node node_modules/react-native/local-cli/cli.js start "android"
┌───────────────────────────────────────────────────────────────────────────── ─┐
│ │
│ Running Metro Bundler on port 8081. │
│ │
│ Keep Metro running while developing on any JS projects. Feel free to │
│ close this tab and run your own Metro instance if you prefer. │
│ │
│ https://github.com/facebook/react-native │
│ │
└───────────────────────────────────────────────────────────────────────────── ─┘
Looking for JS files in
/home/Learning/ReactNative/BlueWallet
Loading dependency graph, done.
【问题讨论】:
-
当应用已经安装在设备上时使用 react-native start。当我们需要在设备上安装应用程序并启动服务器时,使用 react-native run-android。但是当我们在项目中安装新包时,我们需要使用 react-native run-android 重启服务器
-
我的问题是它卡在
Loading dependency graph, done.。但是当我用模拟器启动一个纯 react-native 应用程序时,将没有问题。 -
关闭应用程序并在您的设备中重新打开它,同时打包程序仍在运行。
-
关闭什么应用?我正在尝试创建实时开发模式,以便我的更改显示在模拟器上。默认情况下它会在创建的模拟器之间建立连接,但不知道为什么这个项目没有发生。
标签: android react-native avd