in the build.gradle file, enable multidex and add the multidex library as a dependency, as shown:
android { defaultConfig { ... minSdkVersion 15 targetSdkVersion 26 multiDexEnabled true } ... } dependencies { compile 'com.android.support:multidex:1.0.3' }
By default, in new versions of the support library, when you add "multiDexEnabled = true" , its dependency is added automatically, but for some reason, if you want to support older versions of support, you must enable the dependency manually to compile it.
This will remove Multiple dex files define Landroid/support/v13/view/DragAndDropPermissionsCompat and other 16 errors along with it.
Consider the link: https://developer.android.com/studio/build/multidex for more information.
MGupt source share