The number of method references in a .dex file cannot exceed 64k API 17

You have too many methods. There can only be 65536 methods for dex. As suggested you can use the multidex support. Just add these lines in the module/build.gradle: android { defaultConfig { … // Enabling multidex support. multiDexEnabled true } … } dependencies { implementation ‘androidx.multidex:multidex:2.0.1’ //with androidx libraries //implementation ‘com.android.support:multidex:1.0.3’ //with support libraries } … Read more