The Blog was the old solution.
With Android Studio 0.9.2 & Gradle Plugin 0.14.1, you only need to:
-
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
- add
multiDexEnabled = true
in your build.gradle
.
android {
defaultConfig {
...
multiDexEnabled = true
}
}
Done.
Sorry for my poor English
Related Resources: