expo cli and ADB error: can not connect to daemon
expo cli and ADB error: can not connect to daemon
我正在尝试使用 Genymotion 模拟器 Google Pixel 3 在我的 PC(Win 10 64 位)上运行 expo CLI 和 ADB。
当我 运行 "on android device/ emulator from expo cli" 我得到以下日志:
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.
我已经安装了最新版本的 Virtual Box、genymotion 模拟器,并在我的 "c:\repos" 中正确安装了 expo,现在当我从 expo cli 在模拟器上单击 运行 时,我收到此错误。 sdk 管理器已经安装在我的 c:\ 中,并且在 genymotion 设置中我在 adb 中设置了这个路径:"C:/Program Files/Genymobile/Genymotion" 它显示这个文件夹是有效的。
当前电脑与模拟器未连接导致错误
您是否按照错误中的描述设置了 Genymotion?
如果没有,请转到设置 -> ADB,select "Use custom Android SDK tools" ->
并将其指向您的 Android SDK 目录。
/Users/username/Library/Android/sdk
运行模拟器,点击developer options
,启用USB debugging
并启用Wi-Fi to Cellular
.
运行 Genymotion Shell
并键入 devices list
以查找设备的 IP 地址。
打开终端并输入adb connect deviceIp:5555
。确保与 adb device
的连接正确。输入 adb usb
和 adb tcpip 5555
.
我正在尝试使用 Genymotion 模拟器 Google Pixel 3 在我的 PC(Win 10 64 位)上运行 expo CLI 和 ADB。
当我 运行 "on android device/ emulator from expo cli" 我得到以下日志:
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.
我已经安装了最新版本的 Virtual Box、genymotion 模拟器,并在我的 "c:\repos" 中正确安装了 expo,现在当我从 expo cli 在模拟器上单击 运行 时,我收到此错误。 sdk 管理器已经安装在我的 c:\ 中,并且在 genymotion 设置中我在 adb 中设置了这个路径:"C:/Program Files/Genymobile/Genymotion" 它显示这个文件夹是有效的。
当前电脑与模拟器未连接导致错误
您是否按照错误中的描述设置了 Genymotion?
如果没有,请转到设置 -> ADB,select "Use custom Android SDK tools" ->
并将其指向您的 Android SDK 目录。
/Users/username/Library/Android/sdk
运行模拟器,点击developer options
,启用USB debugging
并启用Wi-Fi to Cellular
.
运行 Genymotion Shell
并键入 devices list
以查找设备的 IP 地址。
打开终端并输入adb connect deviceIp:5555
。确保与 adb device
的连接正确。输入 adb usb
和 adb tcpip 5555
.