Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.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
Android 模拟器未工作:任务“:app:installDebug”的执行失败_Android_React Native - Fatal编程技术网

Android 模拟器未工作:任务“:app:installDebug”的执行失败

Android 模拟器未工作:任务“:app:installDebug”的执行失败,android,react-native,Android,React Native,首先,我是一个新手。我在Facebook官方网站React native教程中启动React native。当我一步一步地遵循react原生android设置,然后在显示此消息时运行此项目请解决此错误,并建议我。请帮帮我 D:\Linux\IDE\All-Workspace\JavaScript-Workspace\React-Workshop\AwesomeProject>react-native run-android JS server already running. Buildi

首先,我是一个新手。我在Facebook官方网站React native教程中启动React native。当我一步一步地遵循react原生android设置,然后在显示此消息时运行此项目请解决此错误,并建议我。请帮帮我

D:\Linux\IDE\All-Workspace\JavaScript-Workspace\React-Workshop\AwesomeProject>react-native run-android
JS server already running.
Building and installing the app on the device (cd android && gradlew.bat install debug)...

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 6s
27 actionable tasks: 1 executed, 26 up-to-date
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.
仿真器即使在重新启动后仍处于相同的状态,等等。。? 遵循以下步骤: 开放安卓工作室 打开配置 打开AVD管理器 应该有一个引起问题的仿真器-如果不创建一个新的仿真器,则创建一个测试版本。 转到操作中的向下箭头,然后选择停止 在操作中同样如此,但这次选择“立即冷启动”
每当我在模拟器上遇到问题时,这对我来说都是有效的

没有连接的设备!意味着在尝试构建之前,您需要打开Android仿真器或通过USB连接设备。从底部开始的第三行很有帮助。I的可能重复现在是重复的问题,但它不能解决@IshitaSinhadid您连接设备或启动模拟器?连接设备时,显示此错误时。>任务:app:installDebug跳过设备“NE1GAM4780122174”失败NE1GAM4780122174:设备处于脱机状态。