I had this same issue and did a google search and wound up here. In case anyone else has had this issue, what fixed it for me was entering the CORRECT password for the gmail account. I had a typo in my code on my test app and was using the gmail address for the address AND the password.
Just thought I would pass it along.