android { defaultConfig { ... minSdkVersion 21 targetSdkVersion 26 multiDexEnabled true //this is it } ... }//add multidexEnabled true to dependencies