您如何亚行到bluestacks 4? [英] How do you adb to bluestacks 4?

查看:134
本文介绍了您如何亚行到bluestacks 4?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆