Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot add a google account to android emulator

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

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"

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.

like image 857
billby Avatar asked Jul 05 '12 00:07

billby


People also ask

Why can't I add an account to my Google Account?

Why can't I add Google Account to my phone? Straight up, there are many reasons you're unable to add a Google account in Android. The problem could result from the popular Google server problem, bugs or corrupted caches in Google Play Services (or other core Android apps), outdated software, and many more.

Can you use Google Play on emulator?

Yes, you can enable/use Play Store on Android Emulator(AVD): Before that you have to set up some prerequisites: Start Android SDK Manager and select Google Play Intel x86 Atom System Image (Recomended: because it will work comparatively faster) of your required android version (For Example: Android 7.1.


1 Answers

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

  • 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

That's it !

like image 135
Arnaud SmartFun Avatar answered Oct 27 '22 20:10

Arnaud SmartFun