ADB rejected shell command (ls -l /data)

2019-02-25 04:58发布

问题:

I keep getting

ADB rejected shell command (ls -l /data):

and the command prompt when running adb shell tells me error: device not found although the emulator is open.

What I am doing wrong?

回答1:

I assume you run adb from the command-line. Just do a adb kill-server and a adb start-server. After that your device(s) should be visible.