close

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

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error General error during semantic analysis: Unsupported class file major version 57 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 57 Error Occurs?

Today I get the following error General error during semantic analysis: Unsupported class file major version 57 in java.

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

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

    To Solve General error during semantic analysis: Unsupported class file major version 57 Error I upgraded from AdoptOpenJDK 13 to 14 and my Android projects now build successfully.

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

    To Solve General error during semantic analysis: Unsupported class file major version 57 Error I upgraded from AdoptOpenJDK 13 to 14 and my Android projects now build successfully.

Solution 1

To fix this error I went to the file directory at android/gradle/wrapper/gradle-wrapper.properties and modified the distributionUrl which was set to gradle-5.5 instead I used gradle-6.0. For some reason, it does not recognize the 6.2 distribution, even though this is the version of gradle I am currently on. I figured this was supposed to correspond to the version but apparently not.

Instead of:

distributionUrl=https\://services.gradle.org/distributions/gradle-5.5-all.zip

Use:

distributionUrl=https\://services.gradle.org/distributions/gradle-6.0-all.zip

Solution 2

I upgraded from AdoptOpenJDK 13 to 14 and my Android projects now build successfully.

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? Thank You.

Also, Read

Leave a Comment