java 无法在 Google App Emulator 中添加 Google 帐户
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5954000/
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
Can not add google account in Google App Emulator
提问by need_the_buzz
I am trying to implement my first Android C2DM aplication. I have difficulty in adding a google account. My machine is behind a proxy, but I have added an APN with the proxy,port,username,password details. I can go to the google account page using a browser, I have tried the http and https sites and I am able to access. But when I try to add a google account by going to settings-> Accounts and Sync-> Add Account->google->Already have a google account->signin->give details...It gives me this message..
我正在尝试实现我的第一个 Android C2DM 应用程序。我在添加 Google 帐户时遇到困难。我的机器在代理后面,但我添加了一个包含代理、端口、用户名、密码详细信息的 APN。我可以使用浏览器访问 google 帐户页面,我尝试了 http 和 https 站点,并且可以访问。但是,当我尝试通过转到设置-> 帐户和同步-> 添加帐户-> google-> 已经有一个 google 帐户-> 登录-> 提供详细信息来添加谷歌帐户时...它给了我这条消息..
Error message is "Cant establish a reliable data connection to the server"
错误消息是“无法与服务器建立可靠的数据连接”
When i used wire shark and checked the proxy it connecting to, It is not using the proxy I have given in the APN section. Anybody knows how do I solve this problem? I am using GoogleApp API Level 9 Platform 2.3.1.
当我使用wireshark并检查它连接的代理时,它没有使用我在APN部分给出的代理。有谁知道我该如何解决这个问题?我使用的是 GoogleApp API Level 9 Platform 2.3.1。
回答by need_the_buzz
I have managed to solve this issue, The emulator was somehow not detecting the proxy settings. Then I fired the emulator from command prompt using the below command and it all worked fine and I have managed to add the google account.
我已经设法解决了这个问题,模拟器不知何故没有检测到代理设置。然后我使用以下命令从命令提示符启动模拟器,一切正常,我已经设法添加了谷歌帐户。
emulator.exe -avd GoogleDevice -http-proxy @@@.@@.@@@.@@:$$$$ -debug-proxy
Note: @
is my proxy and $
is my port, GoogleDevice
is the name of the device you would like to run.
注意:@
是我的代理,$
是我的端口,GoogleDevice
是您要运行的设备的名称。
回答by alfo888_ibg
the solution I found here! :
我在这里找到的解决方案!:
http://www.grokkingandroid.com/using-a-google-account-in-the-emulator/
http://www.grokkingandroid.com/using-a-google-account-in-the-emulator/