Android support multidex library implementation

25 Aug

By: Nicolas Tyler

There are a few things you have to do,

1- In your gradle you need to specify multidex and add the support library:

android {
    defaultConfig {
        multiDexEnabled true

dependencies {
  compile ''

2- In your manifest you have to set your application to a multidex application:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android=""

3.1- In your application class you have to either extend MultiDexApplication:

public class my_application extends MultiDexApplication

3.2- Or Overide the attachBaseContext() method:

public class my_application extends Application
    protected void attachBaseContext(Context base)

Copy from:

Leave a comment

Posted by on August 25, 2015 in Android, Mobile Development


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: