expo cli和ADB错误:无法连接到守护程序 [英] expo cli and ADB error: can not connect to daemon

查看:212
本文介绍了expo cli和ADB错误:无法连接到守护程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试让Genymotion模拟器Google Pixel 3在我的PC(Win 10 64位)上运行expo CLI和ADB.

I am trying to get expo CLI and ADB working on my PC (Win 10 64bit) with the Genymotion emulator Google Pixel 3.

当我在"expo cli的android设备/模拟器上"运行时,会收到以下日志:

When I run "on android device/ emulator from expo cli" I get the following logs:

无法在Android上启动项目:运行adb时出错:未找到Android设备.请连接设备并按照此处的说明启用USB调试: https://developer.android.com/studio/run/device.html#developer-device-options .如果您使用的是Genymotion,请转到设置"->"ADB",选择使用自定义Android SDK工具",然后将其指向您的Android SDK目录.

Couldn't start project on Android: Error running adb: No Android device found. Please connect a device and follow the instructions here to enable USB debugging: https://developer.android.com/studio/run/device.html#developer-device-options. If you are using Genymotion go to Settings -> ADB, select "Use custom Android SDK tools", and point it at your Android SDK directory.

查看此图片

当我从expo cli在模拟器上运行时,我已经安装了最新版本的Virtual Box,genymotion模拟器并正确地在我的"c:\ repos"中安装了expo,我收到此错误. sdk管理器已经安装在我的c:\和genymotion设置中,我在adb中设置了以下路径:"C:/Program Files/Genymobile/Genymotion",它表明此文件夹有效.

I am already install latest verson of Virtual Box, genymotion emulator and properly install expo in my "c:\repos" now when I click run on emulator from expo cli I get this error. sdk manager is already install in my c:\ and in genymotion settings I setup this path in adb : "C:/Program Files/Genymobile/Genymotion" and it's show this folder is valid.

推荐答案

发生错误,因为当前计算机和仿真器未连接.

Error occurred because the current computer and emulator are not connected.

您是否按照错误所述设置了Genymotion?

Did you set up the Genymotion as described in the error?

如果没有,请转到设置"->"ADB",选择使用自定义Android SDK工具"->

If you hadn't, go to Settings -> ADB, select "Use custom Android SDK tools" ->

,然后将其指向您的Android SDK目录.

and point it at your Android SDK directory.

/Users/username/Library/Android/sdk

运行仿真器,单击developer options,启用USB debugging并启用Wi-Fi to Cellular.

Run emulator, click developer options, enable USB debugging and enable Wi-Fi to Cellular.

运行Genymotion Shell并键入devices list来找到设备的IP地址.

Run the Genymotion Shell and type devices list to find the IP address of the device.

打开终端,然后输入adb connect deviceIp:5555.确保与adb device的连接正确.输入adb usbadb tcpip 5555.

Open the terminal and enter adb connect deviceIp:5555. Make sure the connection to adb device is correct. Enter adb usb and adb tcpip 5555.

这篇关于expo cli和ADB错误:无法连接到守护程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆