[Android] Program type already present: android.support.v13.view.DragAndDropPermissionsCompat

Program type already present: android.support.v13.view.DragAndDropPermissionsCompat Message{kind=ERROR, text=Program type already present: android.support.v13.view.DragAndDropPermissionsCompat, sources=[Unknown source file], tool name=Optional.of(D8)}

 

Add this line in dependencies
configurations {
    all*.exclude group: 'com.android.support', module: 'support-v13'
    }
 
example :  
dependencies {
    configurations {
        all*.exclude group: 'com.android.support', module: 'support-v13'    }
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    //noinspection GradleCompatible    implementation 'com.android.support:appcompat-v7:27.1.1'    //noinspection GradleCompatible    implementation 'com.android.support:design:27.0.1' 

Source : https://stackoverflow.com/questions/49553021/program-type-already-present-android-support-v13-view-draganddroppermissionscom

Komentar