In the app build.gradle file
android { defaultConfig { multiDexEnabled true } } dependencies { compile 'com.android.support:multidex:1.0.1' }
than in your Application class, extends the MultiDexApplication class
public class myApplication extends MultiDexApplication { @Override public void onCreate() { super.onCreate(); } }
than in your manifest add class myApplication
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.demo.application"> <application .... android:name=".myApplication"> .... </application>
source share