Program type already present

error:Program type already present: android.support.v4.app.BackStackRecord$Op 

implementation('com.github.bumptech.glide:glide:4.7.1') {
    //作用   当项目引用了v4包时 又引用了此包  此包里面也引用了v4 就会有冲突   可用这种方式解决
    exclude group: 'com.android.support'
    exclude module: 'appcompat-v7'
    exclude module: 'support-v4'
}

解决:导入的jar包重复引用,删除jar包ok

你可能感兴趣的:(Android)