简体   繁体   English

无法将Google帐户添加到Android模拟器

[英]Cannot add a google account to android emulator

I am having a problem connecting my android emulator to gmail . 将android模拟器连接到gmail时遇到问题 I cannot add my gmail account even though I can browse the web. 即使可以浏览网络,我也无法添加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 proxy so 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。

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 输入您的Gmail地址和密码
  • Click on Manual Setup 点击手动设置
  • Choose Exchange 选择交易所
  • For the Domain\\Username enter \\yourEmail@gmail.com (don't forget the backslash at start, and the @gmail.com at the end) 对于“域\\用户名”,输入\\ yourEmail@gmail.com(请不要忘记在开始时使用反斜杠,在结尾处使用@ gmail.com)。
  • Server: m.google.com (not gmail.com) 伺服器:m.google.com(非gmail.com)
  • Check use SSL (should be already checked) 检查使用SSL(应该已经检查)
  • Click Next, next, next 单击下一步,下一步,下一步

That's it ! 而已 !

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM