[Troubleshooting] Illegal class file: Class module-info is missing a super type. Class file version 53.

Last updated November 1, 2022 at 11:17 AM

When compiling your android code you find the error Illegal class file: Class module-info is missing a super type. Class file version 53.

It doesn't take much to solve this problem. We have personally met after updating the libraries of our android project and their migrations to windows. The reason is that I wanted to use my pc linux to virtualize a network infrastructure using Docker to automate code processing processes.

Coming back to the subject, during development, we found an error that stuck us for a long time. This is the error:

Illegal Class File: Class Module-Info is Missing A Super Type. Class File version 53.

 

[Troubleshooting] Error: Cookies are blocked or not recognized by your browser. You must enable cookies to use WordPress

 

[bctt tweet=”Troubleshooting: Illegal class file: Class module-info is missing a super type. Class file version 53.” username=”tedidevblog”]

 

 

 

Temporary solution

 

Illegal Class File: Class Module-Info is Missing A Super Type. Class File version 53.

 

The solution of this problem is found in the site stackoverflow.com. You must copy the following script to your file build.gradle application level.

 

debug {FirebasePerformance {// Set this flag to 'false' to disable @AddTrace annotation processing and // automatic HTTP / S network request monitoring // for a specific build variant at compile time. instrumentationEnabled false}}

 

[Troubleshooting] Unity 3d: Deterministic compilation failed. You can disable Deterministic builds in Player Settings

 

Quick fix

 

This solution will allow you to work locally if you don't want to waste time. Unfortunately you will not be able to drag it out for long because to generate the apk you will be blocked and forced to put the same script in the release at the risk of preventing firebase performance from working correctly on your clients.

The second solution is that we have applied so much as a strategy that we could have forgotten to talk about it. It is a question of using the last version of firebase which worked before the update of the libraries. This will allow you to advance quickly in the tasks.

 

 

 

Complete solution (Update 22/10/2020)

 

This time, here is a more complete solution but could take time depending on the size of your projects.

  • To solve this problem just update your gradle and all other libraries if possible. Our gradle is updated to version 6.1.1 in the gradle-wrapper.properties file.
  • In the second step you may find the following error:

 

The option 'android.enableUnitTestBinaryResources' is deprecated. The current default is 'false'. It has been removed from the current version of the Android Gradle plugin. The raw resource for unit test functionality is removed.

 

The problem with this message is that it doesn't say where to remove the deprecated option let alone mislead when you click “open file ".

The option is in the file gradle.properties. You just have to delete the line below to put everything back in order

android.enableUnitTestBinaryResources = true

 

 

Causes of the error: Illegal class file: Class module-info is missing a super type. Class file version 53.

 

The migration of my projects to windows has nothing to do with the error but it all started after updating the libraries.

As you may have guessed, the error:Illegal class file: Class module-info is missing a super type. Class file version 53 comes from the firebase library which takes care of the performance analysis of your project. To make it work, the first solution found on the stackoverflow site was to disable firebase performance. The second solution if you don't want to take any risks would be to return the last version that worked for your project.

 

 

 

Last updated November 1, 2022 at 11:17 AM

 

 

Conclusion

 

We decided to keep the previous solutions in order to offer more possibilities. Good programming. Maybe you will like [Troubleshooting] HP All-in-One Desktop PC: The computer starts up but the screen shows nothing ou Git: tutorial to link your local repository to the remote repository to protect your project.