问题描述
我想使用adb连接到bluestacks 4上的android模拟器。
,但 adb.exe -s emulator-5554 shell
I'd like to connect to android emulator on bluestacks 4 with adb. but I've got an error with adb.exe -s emulator-5554 shell
检查时出错设备。
$ adb.exe devices
List of devices attached
BH901... device
CB512... unauthorized
emulator-5554 device
一旦我关闭bluestacks窗口, emulator-5554
将从命令的结果中隐藏。因此,我认为 emulator-5554
意味着bluestacks。
once I shutdown bluestacks window, the emulator-5554
will be hidden from above command's result. thus I think emulator-5554
means bluestacks.
然后如下所示使用adb。
then commnad as below to use adb.
$ adb.exe -s emulator-5554 shell
error: closed
但您知道发生了错误。
推荐答案
第一个,在Bluestacks中,转到设置->首选项->启用Android调试桥(ADB)。像这样:
First, in Bluestacks, go to Settings -> Preferences -> Enable Android Debug Bridge (ADB). Like this:
此时,Bluestacks启用了它的adb功能,并将其自身公开到端口5555的本地主机(默认端口)
At this point, Bluestacks enables its adb functionality and exposes itself to the localhost at port 5555 (the default port)
因此,在命令行中键入 adb连接本地主机:5555
,您应该会很好。
So, in your command line, type adb connect localhost:5555
and you should be good to go.
这篇关于您如何亚行到bluestacks 4?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!