Unsupported class file major version 60”?

[ad_1]

Are you having problems with the issue “General error during semantic analysis: Unsupported class file major version 60“? How to fix it? In today’s article, I will provide solutions for you to solve the issues. Please follow the below steps to get the problem resolved now

How did “General error during semantic analysis: Unsupported class file major version 60” occur?

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

When you work with JAVA, you may get the issue General error during semantic analysis: Unsupported class file major version 60. Don’t worry, we are here to provide you solutions in order to resolve your problem.

How to fix “General error during semantic analysis: Unsupported class file major version 60”?

To Solve a general error in semantic analysis: Unsupported Class File Major Version 60 Error Simplest. The easiest way to fix this is to modify the Gradle JVM. Here is a guide on how to modify the Gradle JVM. Build Tools To check the Gradle JVM version that was used to import a project, go to Gradle Settings page.

Solution 1: Change the Gradle JVM

The Gradle JVM can be changed in the simplest and easiest way. Here is a quick guide on how to change Gradle JVM.

  1. In the Settings/Preferences dialog

    Ctrl+Alt+S

    Go to Build, Execution, Deployment | Build Tools | Gradle
  2. Under the “strongTag3$ settings” heading, you will find the following:
  3. Gradle section: Use the Gradle JVM option for Gradle to verify the Gradle version used to import a project.

Solution 2: Upgrade the Gradle version

My Error was solved by simply upgrading to Gradle.

  1. Open gradle/wrapper/gradle-wrapper.properties
  2. Simply change the version number in gradle
  3. If your gradle version 6.3 is not working, you can change it by changing this to distributionUrl=https://services.gradle.org/distributions/gradle-6.3-bin.zip
  4. To $strongTag5
  5. Now, fix your error

Solution 3: Upgrade the Gradle Version Method 2

My problem was solved by upgrading Gradle 6.8.3 from 7.0. It can be upgraded

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

It works with Android Gradle Plugin version 4.0

Final words

The above are useful solutions that can help you fix “General error during semantic analysis: Unsupported class file major version 60” problem, if you can’t solve it well. Please leave a message.

[ad_2]

Source link