Program type already present: android.support.v4.widget.EdgeEffectCompat

1、确保所有依赖包的

implementation 'com.android.support:appcompat-v7:25.4.0'
是一样的

2、确保最外层的build.gradle中增加如下代码:

allprojects {
    repositories {
        google()
        jcenter()
    }

    subprojects {
        project.configurations.all {
            resolutionStrategy.eachDependency { details ->
                if (details.requested.group == 'com.android.support'
                        && !details.requested.name.contains('multidex') ) {
                    details.useVersion "25.4.0"
                }
            }
        }
    }
}
原文地址:https://www.cnblogs.com/baiyi168/p/9209766.html