close

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

Today We are Going To Solve General error during semantic analysis: Unsupported class file major version 60 in Java. Here we will Discuss All Possible Solutions and How this error Occurs So let’s get started with this Article.

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

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

    To Fix General error during semantic analysis: Unsupported class file major version 60 Error just Follow the steps. To solve this error just follow the below steps:
    First of all go to the terminal of your react-native project
    Then create erties named file with this line. sdk.dir=C:\Android\sdk
    And now go to the android and then click to gradle and then wrapper and select gradle-wrapper.properties. Then just change distributionUrl=https://services.gradle.org/distributions/gradle-6.7-all.zip to distributionUrl=https://services.gradle.org/distributions/gradle-7.3-all.zip and goto android\gradle.prope And just ad the below line and it will remove your error.
    org.gradle.jvmargs=-Xmx1536M --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED

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

    To Fix General error during semantic analysis: Unsupported class file major version 60 Error just Follow the steps. To solve this error just follow the below steps:
    First of all go to the terminal of your react-native project
    Then create erties named file with this line. sdk.dir=C:\Android\sdk
    And now go to the android and then click to gradle and then wrapper and select gradle-wrapper.properties. Then just change distributionUrl=https://services.gradle.org/distributions/gradle-6.7-all.zip to distributionUrl=https://services.gradle.org/distributions/gradle-7.3-all.zip and goto android\gradle.prope And just ad the below line and it will remove your error.
    org.gradle.jvmargs=-Xmx1536M --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED

Solution 1 : Follow the steps

To solve this error just follow the below steps:

  1. First of all go to the terminal of your react-native project
  2. Then create erties named file with this line. sdk.dir=C:\Android\sdk
  3. And now go to the android and then click to gradle and then wrapper and select gradle-wrapper.properties.
  4. Then just change distributionUrl=https://services.gradle.org/distributions/gradle-6.7-all.zip to distributionUrl=https://services.gradle.org/distributions/gradle-7.3-all.zip and goto android\gradle.prope
  5. And just ad the below line and it will remove your error.
org.gradle.jvmargs=-Xmx1536M --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED

Conclusion

So these were all possible solutions to this error. I hope your error has been solved by this article. In the comments, tell us which solution worked? If you liked our article, please share it on your social media and comment on your suggestions. Thank you.

Also Read These Solutions

Leave a Comment