Unable to connect to Gmail

Try to create App Password under Account Settings, Security --> https://myaccount.google.com/apppasswords
And use it instead of your normal password, it will solve the 2 Factor Auth issue at least.

Thanks, this helped!