Do you have two factor authentication enabled on your Gmail account?
If so you need to generate an app password to bypass that and allow your project to connect to your account whilst circumventing the 2FA