Meaning

Real meaning

It means that there are more than 65536 methods defined.

Meaning in Cocoon

Your code and every plugin used in your project define more than 65536 functions.

Common large plugins are Google Play Services implementations and some SDKs.

How to detect it

This error only happens with Android compilations. The chances of encounter with this error increase with the amount of plugins in your project.

The error log will contain something like the next piece of text near the end of it:

The word “DexIndexOverflowException” is the one that allows you to recognise this error easily. There is also a reference to the fact that a method has an ID greater than 65536.

How to solve it

You just have to go to the Android settings of your project and Enable Multidex.

Multidex Enabled