VM has multidex support, MultiDex support library is disabled VM has multidex support, MultiDex support library is disabled android android

VM has multidex support, MultiDex support library is disabled


create a class lets name it App and extend from MultiDexApplication like this:

import android.support.multidex.MultiDexApplication;public class App extends MultiDexApplication {    //you can leave this empty or override methods if you like so the thing is that you need to extend from MultiDexApplication}

in your manifest add App as your application name just like this

<application        android:name=".App" // <<< this is the important line!        android:allowBackup="true"        android:icon="@mipmap/ic_launcher"        android:label="@string/app_name">

After adding everything make a clean build and it should work now :).


Override attachBaseContext method in your application class

@Overrideprotected void attachBaseContext(Context base) {  super.attachBaseContext(base);  MultiDex.install(this);}