Some test text!

Search
Hamburger Icon

Android / FAQ / How do I resolve the multidex build error for apps with over 64K methods?

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:

Error:The number of method references in a .dex file cannot exceed 64K.
Learn how to resolve this issue at https://developer.android.com/tools/building/multidex.html
Error: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

Get the answers you need: Chat with us