react-native - 运行模拟器导致无限下载
问题描述
我使用控制台命令创建了一个新项目react-native init myApp --template react-native-template-typescript
。
之后,我打开项目文件夹vs code
并在两个终端中运行命令。
1 号航站楼日志
user1@ps:~/documents/projects/myApp$ npx react-native start
┌──────────────────────────────────────────────────────────────────────────────┐
│ │
│ 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/user1/documents/projects/myApp
Loading dependency graph, done.
2 号航站楼日志
user1@ps:~/documents/projects/myApp$ npx react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 864 file(s) to forward-jetify. Using 4 workers...
info JS server already running.
info Installing the app...
Starting a Gradle Daemon, 1 busy and 3 stopped Daemons could not be reused, use --status for details
> Task :app:stripDebugDebugSymbols UP-TO-DATE
Compatible side by side NDK version was not found.
<============-> 99% EXECUTING [10m 45s]
> IDLE
> IDLE
> :app:installDebug
> IDLE
之后有一个永恒的下载。
我打开了 android 的文件夹android studio
并启动了项目,它成功运行并启动了。
我无法使用npx react-native run-android
in 中的命令启动项目是什么问题vs code
?
我应该添加哪些其他信息来解决我的问题?
解决方案
推荐阅读
- clearquest - 如何通过 HTTP Restful API 获取 ClearQuest 中的所有缺陷
- r - 拆分和子串字符串列表
- latex - 乳胶表:在一列中垂直居中文本,其他列顶部对齐固定宽度
- typo3 - 避免从访问受限页面索引文件 ke_search 错字3
- python - 如何将列表转换为整数
- random - 什么是随机种子的熵以及它是如何工作的?
- php - 显示 JSON 数据但未绘制表格(使用 Datables - 服务器端处理)
- javascript - 在 javascript 中拖放克隆
- c - 为什么循环迭代 6 次但条件给出 5 次
- python-3.x - 尝试运行代码分析参考列表以供阅读时出现问题