expo cli and ADB error: can not connect to daemon

2020-08-09 00:11发布

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

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

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.

See this image

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.

1条回答
对你真心纯属浪费
2楼-- · 2020-08-09 00:24

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

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

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

and point it at your Android SDK directory.

/Users/username/Library/Android/sdk

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

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

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.

查看更多
登录 后发表回答