0

I already enable multidex in my project but still received this error after my project building, need some help, guys. Android Studio 3.5.2, Gradle build tools 3.0.1.

support_multidex : "com.android.support:multidex:1.0.3"

defaultConfig {

        // Enabling multidex support.
        multiDexEnabled true
}

public class MyApplication extends Application {

     @Override
        protected void attachBaseContext(Context base) {
            super.attachBaseContext(base);
            MultiDex.install(this);
        }

}
GiN87
  • 1

1 Answers1

0

For my app, this error was solved by this first option.

In my build.gradle file, under android I just added this code.

dexOptions {
      javaMaxHeapSize "4g"
}

Another option they recommend is this one.

dexOptions {
          jumboMode true
}

I guess you will have more understanding on this problem by this two links.

Interesting stackoverflow conversation

Google Official documentation

MinnKhant
  • 61
  • 8