A recent issue that has been affecting users of the Eclipse IDE is a General error during semantic analysis: Unsupported class file major version 60.
This issue can cause many problems, such as errors in the code editor, problems launching or debugging applications, and more. Fortunately, there are some methods to fix this issue. Let’s scroll down to explore now!
Why Did General Error During Semantic Analysis: Unsupported Class File Major Version 60 Error Happen?
If you open an older project in IntelliJ IDEA that was created in a newer version of the IDE and get the following error:
Here is the message: “General error during semantic analysis: Unsupported class file major version 60.”
It means that your project contains classes or resources that are no longer supported. The solutions for this error are simple, and you can find them in the following section.
3 Amazing Methods To Fix The Error
Method 1
When you build with Gradle, the default JVM is used. However, you can change the JVM used by Gradle. This can be helpful if you want to use a different JVM or if you are experiencing problems with the default JVM.
If you want to change the Gradle JVM, go to Build, Execution, Deployment, and use the Gradle JVM option to check the Gradle version. There are several different Gradle versions that you can use. You can also choose the Java VM.
Method 2
You can follow our instructions as below.
1. Open the Gradle/wrapper/gradle-wrapper.properties file.
2. Change “distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-bin.zip” to “distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip”.
3. Save the file and close it.
4. Close and reopen your terminal window (or command prompt).
5. Type “gradle wrapper” and press enter to run the Gradle Wrapper script.
6. The script will download Gradle 7 if you don’t have it installed already, and then upgrade your Gradle installation to version 7.
Method 3
Upgrading Gradle from version 6.8.3 to 7.0 will solve your problem successfully. You can upgrade it by selecting the Gradle Projects option and clicking Project Structure.
You will find Change Gradle Version 7.0 near the bottom on the left panel. It works well with Android Gradle Plugin version 4.2.0.
Conclusion
In conclusion, there are several ways to fix General Error during semantic analysis: unsupported class file major version 60. One is to update the class file to a supported version. Still, another is to upgrade the Gradle.
Each fixing solution has its own benefits and drawbacks, so it is essential to identify which approach will work best for each project. Thank you for your reading! See you again in the next post.
Related articles
- Top Ways To Create A User-Friendly Online Property Search For Your Real Estate Clients
If you’re running a real estate business, you’re well aware that pretty much most of the paperwork has become automated and it’s time for you really get an education on what you need to use in terms of technology. This is important to make your online presence and services stand out from the competition. Like […]
- List Education Websites for Students, providing a variety of materials and completely free
Everyone would like to get the highest quality of education in order to fulfill their goals. But the more an institution is of high quality and reputable, the more fees they charge. Students typically leave their education in a state of nil and work blue collar jobs to achieve their primary needs. Additionally, they collect […]
- Simple solution to correct the requests.exceptions.ConnectionError: (‘Connection aborted.’ RemoteDisconnected(‘Remote end closed connection without response’)) issue
Python is a popular programming language that can be used widely in a lot of applications. Python is also a good choice as a programming language depending on user background and perspective. Because it is used widely and popular, if you find any errors when using Python. It is a common problem, you face the […]
- “[Errno 61] Connection refused” is occurring even, the program is connecting with the port well and the socket is running in the interfaces.
If you see the “[Errno 61] Connection refused” issue although you checked the program, port, socket and interfaces. Although your program of Python works well in the server and the client, they are installed at the same device. The local IP from my device is connecting with the clients but this IP is not connected […]
- Description “Return by Reference”.
C++ is considered not only as a language of Object Oriented Programming, but also an intermediate level language. It identifies both high and low level languages. It became easy and widely used in computer programs and that is the reason why we should understand the definition and its function as well. Such as Return by […]