[英]Can not add google account in Google App Emulator
I am trying to implement my first Android C2DM aplication. 我正在尝试实现我的第一个Android C2DM应用程序。 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.
我的机器在代理后面,但我添加了一个带有代理,端口,用户名和密码详细信息的APN。 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.
我可以使用浏览器访问谷歌帐户页面,我已经尝试过http和https网站,我可以访问。 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..
但是当我尝试通过设置 - >帐户和同步 - >添加帐户 - > 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. 当我使用wire shark并检查它连接的代理时,它没有使用我在APN部分中给出的代理。 Anybody knows how do I solve this problem?
有谁知道如何解决这个问题? I am using GoogleApp API Level 9 Platform 2.3.1.
我使用的是GoogleApp API Level 9 Platform 2.3.1。
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
是您要运行的设备的名称。
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/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.