这是indexloc提供的服务,不要输入任何密码
Skip to content

Execution failed for task ':compileJava'. > warning: source release 18 requires target release 18 #247

@hectess

Description

@hectess

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

  • Try:

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)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions