Have you enabled imap in gmail?
Mine
works fine and I am now on 102.11.1.
According to the documentation is entering the GMail mail address and password enough to let Thunderbird configure the access to the IMAP service of GMail. However Thunderbird shows a message that it does not know how to do that. Thunderbird is installed from from the Main repository and has version 102.10.1. Anybody having more success?