认证令牌与~/.emulator_console_auth_token不匹配

4
我正在尝试通过控制台访问安卓模拟器。 最初我输入了telnet localhost 5554,然后我看到:

screenshot of command line

接下来我输入了auth auth_token,结果出现了以下错误:

screenshot of command line

这里有什么问题?

我在哪里可以获得这个令牌?

谢谢帮助!

2个回答

6
在Windows上,该文件位于您当前用户文件夹中。
c:\Users\<current_user>\.emulator_console_auth_token

您可以使用记事本打开文件并复制令牌。

现在,您可以运行

auth <token>

4

只需从文件.emulator_console_auth_token中复制令牌,然后运行命令

auth your-token-here

为了检查是否一切顺利,请运行“help”命令,您将看到更多命令在列表中可用。我不知道这是否是解决此问题的最佳选择,但这个解决方案对我有效。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接