How to tell Appflow to use Java 11 instead of 1.8? (Build Error)


please see the following message:

Appflow can’t detect the gradle plugin version and uses java 1.8 instead of 11. Because of this reason, the build isn’t working. Full Error Message:

> Task :capacitor-android:compileReleaseJavaWithJavac
An exception has occurred in the compiler (1.8.0_312). Please file a bug against the Java compiler via the Java bug reporting page ( after checking the Bug Database ( for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.AssertionError: annotationType(): unrecognized Attribute name MODULE (class$NameImpl)

What can I do to make Appflow recognizing the gradle plugin version and use Java 11?