expo cli and ADB error: can not connect to daemon

我的未来我决定 提交于 2019-12-22 01:17:39

问题


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:


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.



来源:https://stackoverflow.com/questions/55348690/expo-cli-and-adb-error-can-not-connect-to-daemon

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!