【问题标题】:Stuck when run react-native application运行 react-native 应用程序时卡住
【发布时间】:2019-10-28 09:48:31
【问题描述】:

我在模拟器中运行 react-native 应用程序,但是当我运行 npx react-native run-android --no-jetifier 时,运行卡住并且什么也不做:

我的模拟器:

如何解决?

【问题讨论】:

  • 投票this proposal 以缓解 [yarn] 和 [yarnpkg] 周围的标签混淆。

标签: android node.js react-native npm yarnpkg


【解决方案1】:

如果有一个需要 jetifier 的库,它将不起作用。反应本机手势处理程序。 如果没有这样的库,则删除 node_modules 和 npm install 并重试。

【讨论】:

  • 它在我运行react-native init AppName 时启动了项目,如果我不使用jetifier,运行仍然卡住,我收到此消息info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. Jetifier found 863 file(s) to forward-jetify. Using 4 workers...
  • 关注这个接受的答案stackoverflow.com/questions/57048978/…
猜你喜欢
  • 1970-01-01
  • 2018-03-20
  • 1970-01-01
  • 1970-01-01
  • 2021-11-11
  • 1970-01-01
  • 2019-08-20
  • 2017-01-10
  • 2019-02-04
相关资源
最近更新 更多