Enabling Multidex

suggest change

In order to enable a multidex configuration you need:

Gradle configuration

In app/build.gradle add these parts:

android {
    compileSdkVersion 24
    buildToolsVersion "24.0.1"

    defaultConfig {
        ...
        minSdkVersion 14
        targetSdkVersion 24
        ...

        // Enabling multidex support.
        multiDexEnabled true
    }
    ...
}

dependencies {
  compile 'com.android.support:multidex:1.0.1'
}

Enable MultiDex in your Application

Then proceed with one of three options:

When these configuration settings are added to an app, the Android build tools construct a primary dex (classes.dex) and supporting (classes2.dex, classes3.dex) as needed.

The build system will then package them into an APK file for distribution.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents