[英]React-Native physical device not connecting to server
Here's whats happening- react-native run-android fails giving the following error message- " Execution failed for task ':app:installDebug'.这是发生的事情 - react-native run-android 失败并给出以下错误消息 - “任务':app:installDebug'的执行失败。
com.android.builder.testing.api.DeviceException: No connected devices!
com.android.builder.testing.api.DeviceException:没有连接的设备!
" "
Here's a list of things i have done-这是我做过的事情的清单-
adb devices
.adb devices
时设备(电话)未显示。 I have also tried connecting the phone as a file transfer device and every other mode possible. So is there a way to solve these issues?那么有没有办法解决这些问题呢? or is there any other method using which i can run my react-native application for debugging.
或者是否有任何其他方法可以让我运行我的 react-native 应用程序进行调试。
Thanks in advance:)提前致谢:)
Ensure that Developer mode is enabled with USB debugging in the device.确保使用设备中的 USB 调试启用开发人员模式。 If USB debugging is enabled then the device id should be listed in the
adb devices
list.如果启用了 USB 调试,则设备 ID 应列在
adb devices
列表中。 If not then try to add ADB driver for the device or a universal ADB driver.如果没有,请尝试为设备添加 ADB 驱动程序或通用 ADB 驱动程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.