Adding a gmail account to k9

Hi. I have just downloaded k9 to my Chromebook and have added an icloud account. I want to add a gmail account and after I enter my email address it says ‘Configuration Found’. Below that it asks me to sign in to Google but when I press that button I get a an error message ‘OAuth sign in failed’. A small screen briefly appears then disappears but that’s it. Can anybody help please?