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 ?
- How To Solve General error during semantic analysis: Unsupported class file major version 60 Error ?
- Solution 1: change the Gradle JVM
- Solution 2: Just upgrade the Gradle version
- Solution 3: Just upgrade the Gradle version Method 2
- Summery
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 ?
- 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.
- 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.
- 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 2: Just upgrade the Gradle version
By just upgrading the Gradle version solved my Error.
- Open gradle/wrapper/gradle-wrapper.properties
- Just change the version number of gradle
- if your gradle version is
6.3
, change this: distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-bin.zip - To distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip
- 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