Create a Basic Android App without an IDE

jake

I am getting the following error:

Downloading https://services.gradle.org…

FAILURE: Build failed with an exception.

* Where:
Settings file ‘D:\AndroidProjectsCmdLine\gradletest\settings.gradle’

* What went wrong:
Could not compile settings file ‘D:\AndroidProjectsCmdLine\gradletest\settings.gradle’.
> startup failed:
General error during semantic analysis: Unsupported class file major version 57

java.lang.IllegalArgumentException: Unsupported class file major version 57

This is followed by many other lines of text but I think this is the main error.

This is after initializing the folder with gradle and before adding any android code. This is what I get after running gradlew build. How can this be fixed?