Enable multidex for Apps

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 65536 represents the total number of references that can be invoked by a single Dalvik Executable(DEX) bytecode file. To resolve this issue, you need to enable multidex for your app. Enabling multidex allows your app to build and read multiple DEX files. For more information about how to enable multidex, see: Building apps with over 64K methods