Javascript React Native,为什么React Native运行的android不工作?

Javascript React Native,为什么React Native运行的android不工作?,javascript,android,react-native,Javascript,Android,React Native,更新项目文件后,我试图运行react-native运行android,但每当我运行react-native时,它都会抛出一个错误。当我创建那个项目和那个命令时,它工作得很好,但当我编辑和添加一些文件时,比如apps/redux、apps/components、screens等等,它就停止工作了。有人能告诉我为什么它不起作用吗 error Failed to launch emulator. Reason: Could not start emulator within 30 seconds..

更新项目文件后,我试图运行react-native运行android,但每当我运行
react-native
时,它都会抛出一个错误。当我创建那个项目和那个命令时,它工作得很好,但当我编辑和添加一些文件时,比如apps/redux、apps/components、screens等等,它就停止工作了。有人能告诉我为什么它不起作用吗

error Failed to launch emulator. Reason: Could not start emulator within 30 seconds..
warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.
info Installing the app...

> Task :app:compileDebugJavaWithJavac

> Task :app:stripDebugDebugSymbols UP-TO-DATE
Compatible side by side NDK version was not found.

> Task :app:installDebug FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings
27 actionable tasks: 6 executed, 21 up-to-date
Note: C:\Users\Danger World\ReactProject\android\app\src\debug\java\com\reactproject\ReactNativeFlipper.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:installDebug'.
> com.android.builder.testing.api.DeviceException: No connected devices!

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. 

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 11s

error Failed to install the app. Make sure you have an Android emulator running or a device connected. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
Note: C:\Users\Danger World\ReactProject\android\app\src\debug\java\com\reactproject\ReactNativeFlipper.java uses or overrides a deprecated API. 

您需要创建虚拟设备或连接启用USB调试的物理设备()


要创建虚拟设备,请打开android studio并从
配置
菜单中选择AVD管理器,然后在下载所需软件包时创建新的虚拟设备。

您需要创建虚拟设备或连接启用USB调试的物理设备()


要创建虚拟设备,请打开android studio并从
配置
菜单中选择AVD管理器,然后在下载所需软件包的情况下创建一个新的虚拟设备。

如果您在android studio中使用虚拟设备,请在运行android之前尝试手动运行模拟器。 (打开android studio>工具>AVD管理器>创建虚拟设备)

或重复官方安装指南:


如果您在Android studio中使用虚拟设备,请尝试在运行Android之前手动运行模拟器。 (打开android studio>工具>AVD管理器>创建虚拟设备)

或重复官方安装指南:


请说明您使用的是虚拟设备还是物理设备请说明您使用的是虚拟设备还是物理设备