Android support multidex library implementation

The Blog was the old solution.

With Android Studio 0.9.2 & Gradle Plugin 0.14.1, you only need to:

  1. Add to AndroidManifest.xml:

.

android:name="android.support.multidex.MultiDexApplication" 

or

Add

MultiDex.install(this);

in your custom Application’s attachBaseContext method

or your custom Application extend MultiDexApplication

  1. add multiDexEnabled = true in your build.gradle

.

android {
    defaultConfig {
        ...
        multiDexEnabled = true
    }
}

Done.

Sorry for my poor English

Related Resources:

http://developer.android.com/tools/building/multidex.html

https://plus.google.com/+XavierDucrohet/posts/1FnzwdcBnyC

Leave a Comment