首页 > 解决方案 > 运行模拟器导致无限下载

问题描述

我使用控制台命令创建了一个新项目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-androidin 中的命令启动项目是什么问题vs code

我应该添加哪些其他信息来解决我的问题?

标签: react-native

解决方案


推荐阅读