Multidex error for apps with over 64K methods

When your app and the libraries it references exceed 65,536 methods, you might encounter a build error that indicates your app has reached the limit of the Android build architecture:

Groovy

1Error:The number of method references in a .dex file cannot exceed 64K.
2Learn how to resolve this issue at https://developer.android.com/tools/building/multidex.html
3Error:com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536

The number 65,536 represents the maximum number of methods that can be referenced in a single Dalvik Executable (DEX) bytecode file. To resolve this issue, you need to enable multidex for your app which allows your app to build and read multiple DEX files. For more information on how to enable multidex, see: Building apps with over 64K methods

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales