Skip to content

Build failed when running gradlew run #62

@jjhhyyg

Description

@jjhhyyg

I used git command to clone this repository, and then execute gradlew run in cmd. Got this problem:

H:\java\onJava\Onjava8-examples>gradlew run

FAILURE: Build failed with an exception.

* What went wrong:
Could not open settings generic class cache for settings file 'H:\java\onJava\Onjava8-examples\settings.gradle' (C:\Users\hosealle\.gradle\caches\6.8.1\scripts\75ld31xr8xs8bcp4ekz1dgyh0).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 61

* 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.

* Get more help at https://help.gradle.org

BUILD FAILED in 936ms

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions