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

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

It doesn’t take much to solve this problem. I have personally met it after updating the libraries of one of my android project build in windows.

I cause this error when I was setting my linux to virtualize a network infrastructure using Docker to automate my testing workflow.

Coming back to the subject, during development, i found an error that stuck me for a long time.

Here what my console showed to me :

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

I found and tested 3 differents solutions that worked! I explain the cause of this error in the last section.

Spoiler alert : windows has nothing to do with it !

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

Depending of your need, i have 3 solutions for you.

  • The temporary solution
  • Quick fix
  • and the complete fix

I found them progressivly, if i had the complete solution the first time i got it, i would have use it at first.

Temporary solution

The solution of this problem is found in the site stackoverflow.com. Just 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

          }

        }

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 bundle you will be blocked and forced to put the same script in the release file at the risk of preventing firebase performance libraries from working correctly on your clients.

Today you may find more working solution !!

Quick fix

The second solution , the quick fix is to use the latest version of firebase library that work for you before changing it.

This will allow you to advance quickly on your tasks.

Complete solution

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

  • To solve this , 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 at this time.
  • 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 this 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.

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

Leave a Comment