I have the same problem and I can't solve it with your hints. As far as I can see the versions of gradle and Java are incompatible. What I don't know is, how to check and administer both versions in my flutter-project.
Could you please give me a further hint?
Thx in advance