This was working fine on a Windows machine but I am trying to work on a Mac now and I'm getting DexIndexOverflowException
. I have multiDexEnabled true
in my build.gradle. I have extended the MultiDexApplication
class and that class is in my AndroidManifest
file.
compile 'com.android.support:multidex:1.0.1'
is in my dependencies
I still get DexIndexOverflowException
. I added the following to my MultiDexApplication
class and it still didn't work:
@Override
public void attachBaseContext(Context base) {
MultiDex.install(base);
super.attachBaseContext(base);
}