Could not determine java version from '13.0.2'

I’m using Gradle 2.7
I get this message:

FAILURE: Build failed with an exception.

** What went wrong:*
Could not determine java version from ‘13.0.2’.

** Try:*
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

What am I supposed to do? Thanks for helping

If you want Java 13 support, you need to use at least Gradle 6.0: https://docs.gradle.org/6.0/release-notes.html#java-13

Cheers,
Stefan

Thanks for answering. How do I update to the latest Gradle?

That depends how you installed Gradle. Your best bet is to upgrade with the Gradle wrapper: https://gradle.org/install/#with-the-gradle-wrapper