无法将 google 帐户添加到 android 模拟器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11336693/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 07:02:29  来源:igfitidea点击:

Cannot add a google account to android emulator

androidandroid-emulator

提问by billby

I am having a problem connecting my android emulator to gmail. I cannot add my gmail account even though I can browse the web.

我在将我的 android 模拟器连接到 gmail时遇到问题。即使我可以浏览网页,我也无法添加我的 Gmail 帐户。

I go to the Accounts and Sync/add account/google/sign in, and put in my gmail address and password and then get the following message after a long wait - "Can't establish a reliable data connection to the server"

我转到Accounts and Sync/add account/google/sign in,并输入我的 gmail 地址和密码,然后经过漫长的等待收到以下消息 - “无法与服务器建立可靠的数据连接”

I am going through a company proxyso I suspect this may be the problem. This also happens if I try the create new option.

我正在通过公司代理,所以我怀疑这可能是问题所在。如果我尝试创建新选项,也会发生这种情况。

Does anybody know what port needs to be open for this activity to occur, if indeed this is the problem?
Or if anybody has any alternative explanations I would be keen to hear them, as I am stumped.

是否有人知道需要打开哪个端口才能发生此活动,如果这确实是问题所在?
或者,如果有人有任何其他解释,我很想听听他们的意见,因为我很难过。

I am running Android 2.2 with the google apis.

我正在使用 google api 运行 Android 2.2。

回答by Arnaud SmartFun

THE FOLLOWING SOLUTION DOES NOT WORK ANYMORE SINCE API 16 OR 17 (not sure of the number)

以下解决方案不再适用于 API 16 或 17(不确定数字)

  • Click Add Account, EMail.
  • Enter your gmail address and password
  • Click on Manual Setup
  • Choose Exchange
  • For the Domain\Username enter \[email protected] (don't forget the backslash at start, and the @gmail.com at the end)
  • Server: m.google.com (not gmail.com)
  • Check use SSL (should be already checked)
  • Click Next, next, next
  • 单击添加帐户、电子邮件。
  • 输入您的 Gmail 地址和密码
  • 点击手动设置
  • 选择交易所
  • 对于域\用户名,输入 \[email protected](不要忘记开头的反斜杠和结尾的 @gmail.com)
  • 服务器:m.google.com(不是 gmail.com)
  • 勾选使用 SSL(应该已经勾选了)
  • 点击下一步,下一步,下一步

That's it !

就是这样 !