There are many posts about MultiDex. I have experienced, sometimes, errors solved including multiDexEnabled true in the defaultConfig section of my
multiDexEnabled true
defaultConfig
Accroding Android developer official site.
If your minSdkVersion is set to 21 or higher, multidex is enabled by default and you do not need the multidex support library.