Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/189.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
React Native的新安装找不到运行我的应用程序的Android emulator_Android_React Native_Emulation - Fatal编程技术网

React Native的新安装找不到运行我的应用程序的Android emulator

React Native的新安装找不到运行我的应用程序的Android emulator,android,react-native,emulation,Android,React Native,Emulation,我刚刚安装了Android Studio(并用Android 10映像设置了一个模拟器)。我还新安装了react native with npm。我有一个在VSCode中打开的示例项目,还有一个在模拟器中运行的Android设备。然后,我尝试在模拟器中运行应用程序(在终端中调用react native run android),但我不断收到错误: error Failed to launch emulator. Reason: No emulators found as an output of

我刚刚安装了Android Studio(并用Android 10映像设置了一个模拟器)。我还新安装了react native with npm。我有一个在VSCode中打开的示例项目,还有一个在模拟器中运行的Android设备。然后,我尝试在模拟器中运行应用程序(在终端中调用
react native run android
),但我不断收到错误:

error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`.
然后在下面的一行中:

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
我转到
\AppData\Local\Android\Sdk\emulator
并手动运行
/emulator-list avds
,它向我显示了现有模拟器的列表(现在就是我创建的)

这个类似问题的答案也没有解决我的问题:

我在另一台机器上也试过,得到了相同的结果,所以我猜React Native中有一个bug。有人知道怎么解决这个问题吗