Using Classic Outlook on Windows for personal email, calendar, and contact management
This matches a known Classic Outlook Gmail sign-in/sync issue. The most direct fixes are:
- Check Outlook build first.
- Microsoft fixed one Gmail sign-in issue in Version 2008 Build 13127.20296.
- Microsoft also fixed the newer Classic Outlook Gmail browser sign-in issue in Version 2404 Build 17531.10000 for Beta, Current Channel Preview, and Current Channel, and Version 2407 Build 17727.10000 for Monthly Enterprise Channel.
- In Outlook, go to File > Office Account > Update Options > Update Now.
- If the error is “Sorry, we could not sign you in to Google - IMAP”, enable connected experiences.
- Open Outlook or another Office app.
- Go to File > Office Account.
- Under Account Privacy, select Manage Settings.
- Turn on Enable optional connected experiences.
- Restart Outlook, then try the Gmail sign-in again.
- Verify Gmail IMAP settings.
- In Gmail, go to Settings > Forwarding and POP/IMAP.
- Confirm IMAP is enabled if that option is still shown.
- In Settings > Labels, make sure Show in IMAP is selected for Inbox, Sent Mail, Trash, and All Mail and any other labels that should appear in Outlook.
- Sync refresh can take up to 15 minutes.
- Reset the stored Gmail OAuth credentials in Windows.
- Close Outlook.
- Open Credential Manager from the Start menu.
- Select Windows Credentials.
- Under Generic credentials, find entries starting with MicrosoftOffice16_Data:OAUTH2.
- Remove the Gmail-related entries.
- Reopen Outlook and use Sign in via browser again.
- If Outlook still does not prompt correctly after removing credentials, remove the matching Outlook identity registry key.
- This is higher risk than Credential Manager changes. Deleting the wrong registry key can affect Outlook profile data.
- Close Outlook.
- Identify the Gmail-related identity under the Outlook Identities registry area, then delete only the matching Gmail identity key.
- Restart Outlook and sign in again.
- If the Gmail account was removed from the profile, add it back and complete browser sign-in again.
- In Outlook, go to File > Add account.
- During browser sign-in, make sure the consent for Microsoft apps & services is accepted.
The localhost:8011 browser failure is consistent with the known browser-based Gmail sign-in problem in Classic Outlook. Updating Outlook and clearing the stored OAuth credentials are the primary corrective actions from the documented fixes and workarounds.
References:
- Unable to add a Gmail account to Outlook "Could not sign you in to Google" | Microsoft Support
- Unable to sign in or add a Gmail account to classic Outlook | Microsoft Support
- Fix problems connecting your Google account to the Microsoft Cloud | Microsoft Support
- Users get errors 0x800CCC0E & 0x800CCC0F synchronizing Gmail and Yahoo accounts in classic Outlook | Microsoft Support
- Unable to add a Gmail account to classic Outlook | Microsoft Support