close

[Solved] General error during semantic analysis: Unsupported class file major version 60

Hello Guys, How are you all? Hope You all Are Fine. Today When I open it in IntelliJ Idea, it throws an error General error during semantic analysis: Unsupported class file major version 60 in java. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How General error during semantic analysis: Unsupported class file major version 60 Error Occurs ?

Today When I open it in IntelliJ Idea, it throws an error.

* Where:
Initialization script '/tmp/ijmapper.gradle`

* What went wrong:
Could not compile initialization script '/tmp/ijmapper.gradle`.
> Startup failed:
General error during semantic analysis: Unsupported class file major version 60.

How To Solve General error during semantic analysis: Unsupported class file major version 60 Error ?

  1. How To Solve General error during semantic analysis: Unsupported class file major version 60 Error?

    To Solve General error during semantic analysis: Unsupported class file major version 60 Error Simplest And the easiest solution is to change the Gradle JVM. here is a quick guide to change the Gradle JVM. In the Settings/Preferences dialog Ctrl+Alt+S, go to Build, Execution, Deployment | Build Tools | Gradle. On the Gradle settings page, under the Gradle, section, use the Gradle JVM option to check the Gradle version used for importing a project.

  2. General error during semantic analysis: Unsupported class file major version 60

    To Solve General error during semantic analysis: Unsupported class file major version 60 Error Simplest And the easiest solution is to change the Gradle JVM. here is a quick guide to change the Gradle JVM. In the Settings/Preferences dialog Ctrl+Alt+S, go to Build, Execution, Deployment | Build Tools | Gradle. On the Gradle settings page, under the Gradle, section, use the Gradle JVM option to check the Gradle version used for importing a project.

Solution 1: change the Gradle JVM

Simplest And easiest solution is to change the Gradle JVM. here is a quick guide to change the Gradle JVM.

  1. In the Settings/Preferences dialog Ctrl+Alt+S, go to Build, Execution, Deployment | Build Tools | Gradle.
  2. On the Gradle settings page, under the
  3. Gradle, section, use the Gradle JVM option to check the Gradle version used for importing a project.

Solution 2: Just upgrade the Gradle version

By just upgrading the Gradle version solved my Error.

  1. Open gradle/wrapper/gradle-wrapper.properties
  2. Just change the version number of gradle
  3. if your gradle version is 6.3, change this: distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-bin.zip
  4. To distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip
  5. Now Your Error should be fixed

Solution 3: Just upgrade the Gradle version Method 2

Upgrading Gradle version 6.8.3 to 7.0 solved my problem. You can upgrade it

  • File -> Project Structure -> Project(on the left panel)
  • Change Gradle Version 7.0

It works with Android Gradle Plugin version 4.2.0

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also Read

Leave a Comment