Summary
I'm following the tutorial from https://developers.google.com/sheets/api/quickstart/java and when I execute the "gradle run" command y receive this error:
C:\Users\heratess\Documents\Kuflow\gsheets>gradle run
Task :compileJava FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':compileJava'.
warning: source release 18 requires target release 18
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
BUILD FAILED in 629ms
1 actionable task: 1 executed
Sample Name
(i.e. Sheets Quickstart)
Expected Behavior
Actual Behavior
Specifications
- Java version
java version "18.0.1.1" 2022-04-22
Java(TM) SE Runtime Environment (build 18.0.1.1+2-6)
Java HotSpot(TM) 64-Bit Server VM (build 18.0.1.1+2-6, mixed mode, sharing))
- OS (Windows 10)