Can not add google account in Google App Emulator

六月ゝ 毕业季﹏ 提交于 2019-12-10 10:26:36

问题


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..

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.


回答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.




回答2:


the solution I found here! :

http://www.grokkingandroid.com/using-a-google-account-in-the-emulator/



来源:https://stackoverflow.com/questions/5954000/can-not-add-google-account-in-google-app-emulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!