Can't add gmail account in Mail

When I go to set up my gmail accountin Mail, it accepts my log in info, asks me to apprive it accessing certiain gmail things, goes to the screen where I can select to get mail, contacts, calendar, etc and then goes right back to the setup mail screen. This has been happening since Beta 1. Anyone else getting this same error?

Do you get the same behaviour by adding the account from System Preferences > Internet Accounts?

No I can add it just fine on my iMac.

Can't add gmail account in Mail
 
 
Q