Skip to content

Build fails on ./gradlew assemble with Java 17 (Unsupported class file major version 61) #8

@chiragdhunna

Description

@chiragdhunna

Description:

Running ./gradlew assemble with Java 17 causes the build to fail during the Gradle configuration phase with the following error:

General error during semantic analysis: Unsupported class file major version 61
java.lang.IllegalArgumentException: Unsupported class file major version 61

Steps to Reproduce:

  1. Use Java 17 as the active JDK.
  2. Navigate to the android/ directory.
  3. Run ./gradlew assemble.

Expected:
The project should build successfully.

Actual:
Build fails with a semantic analysis error due to unsupported class file version.


Let me know if you want to include system info or Gradle/AGP versions in the issue.

Metadata

Metadata

Assignees

No one assigned

    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