2

I'm trying to run HMS Cloud Debugging in Android Studio, but there's a problem: when the emulator is launched, the device does not appear as a running device (see img below).

no devices img

There is an error log that is for sure related to the issue, but I can't seem to understand it, given that adb is properly installed (platform-tools)

The log, while starting Mate 30 device: enter image description here

which indicated that there's something wrong with adb.

When I run which adb, the output is:

/Users//Library/Android/sdk/platform-tools/adb

so the PATH is set.

So, what is causing this? Thanks in advance

fff
  • 199
  • 2
  • 10

2 Answers2

0

You are advised to check whether the ADB service fails to be started in the following event logs.

enter image description here

enter image description here

If yes, the port is occupied.Kill the process that occupies the port and restart the Android Studio may help you with your issue.

zhangxaochen
  • 32,744
  • 15
  • 77
  • 108
  • I have edited my question to show the error logs more clearly. I've also tried all the restarts and processes releases that you advised and the same error is shown. I remind you that I can run the emulator, but can't run my debug app in the emulator, since it does not appear as a device in AndroidStudio. – fff Mar 22 '21 at 09:42
  • hey@fff,Could you please provide your OS version, Toolkit version number, and Toolkit logs?You can take the log like this. https://i.stack.imgur.com/HcFma.png – zhangxaochen Mar 22 '21 at 09:49
  • Sure, I'm working on a macOS Big Sur 11.2.3, Toolkit v5.2.0.300 and here are the logs from restarting AndroidStudio to launching Cloud Debugging -> https://pastebin.com/RbF8vgxH – fff Mar 22 '21 at 10:20
  • Hey @shirley, any new insights? Thanks – fff Mar 23 '21 at 19:30
  • hi@fff,Sorry for the late reply.may i ask are your adb environment variables correctly configured? And what is the echo after you enter adb on the macOS? – zhangxaochen Mar 24 '21 at 00:48
0

It seems the adb environment is not setup correctly. Please confirm adb could be used in Android Studio Terminal environment. Once that is running, the device selection should show up.

Following link has details about checking and setting adb environment for Android Studio: Error:Unable to locate adb within SDK in Android Studio

Zinna
  • 1,947
  • 2
  • 5
  • 20