程序类型已存在:com.android.internal.http.multipart.ByteArrayPartSource

程序类型已存在:com.android.internal.http.multipart.ByteArrayPartSource,android,gradle,android-build,android-install-apk,Android,Gradle,Android Build,Android Install Apk,我正在尝试创建我的项目的构建,但它给我错误“程序类型已经存在:com.android.internal.http.multipart.ByteArrayPartSource”。我知道我的依赖项中有一些文件是重复的。我试图在不同的地方排除这一群体,但确实找不到正确的方法 以下是我正在使用的依赖项 implementation project(':segmentControlLibrary') implementation project(':googleplayservices_lib'

我正在尝试创建我的项目的构建,但它给我错误“程序类型已经存在:com.android.internal.http.multipart.ByteArrayPartSource”。我知道我的依赖项中有一些文件是重复的。我试图在不同的地方排除这一群体,但确实找不到正确的方法

以下是我正在使用的依赖项

 implementation project(':segmentControlLibrary')
    implementation project(':googleplayservices_lib')
    implementation project(':webservice')
    implementation project(':PDFViewCtrlTools')
    implementation files('libs/acra-4.5.0.jar')
    implementation files('libs/httpmime-4.2.1.jar')
    //compile 'com.astuetz:pagerslidingtabstrip:1.0.1'
    implementation project(':library')
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'com.google.android.material:material:1.0.0'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'androidx.cardview:cardview:1.0.0'
    implementation 'androidx.recyclerview:recyclerview:1.0.0'
    implementation 'it.sephiroth.android.library.horizontallistview:hlistview:1.3.1'
    implementation 'net.zetetic:android-database-sqlcipher:4.2.0@aar'
    implementation 'com.github.bumptech.glide:glide:4.10.0'
    implementation 'com.github.angads25:filepicker:1.1.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'com.squareup.picasso:picasso:2.71828'
    implementation 'fr.avianey.com.viewpagerindicator:library:2.4.1.1@aar'
    implementation 'com.pdftron:pdftron:7.0.3'
    implementation ('com.pdftron:tools:7.0.3'){
        exclude  group: 'com.google.code.gson', module: 'gson'
    }

    implementation files('libs/org.apache.http.legacy.jar')
    implementation 'androidx.multidex:multidex:2.0.1'
    implementation 'com.google.android.material:material:1.1.0-alpha06'
任何人都可以帮助哪个模块可能包含我需要排除的易出错组


注意:我可以在设备中直接运行应用程序,但无法创建调试或发布apk。

删除

implementation'com.google.android.material:material:1.1.0-alpha06'

您已经将上面的材质库声明为


implementation'com.google.android.material:material:1.0.0'
删除

implementation'com.google.android.material:material:1.1.0-alpha06'

您已经将上面的材质库声明为

implementation'com.google.android.material:material:1.0.0'

试试这个

android{
包装选项{
排除“META-INF/依赖项”
排除“META-INF/许可证”
排除“META-INF/LICENSE.txt”
排除“META-INF/license.txt”
排除“META-INF/通知”
排除“META-INF/NOTICE.txt”
排除“META-INF/notice.txt”
排除“META-INF/ASL2.0”
排除(“META-INF/*.kotlin_模块”)
排除“org/apache/http/version.properties”
排除“org/apache/http/client/version.properties”
排除“org/apache/http/entity/mime/version.properties”
}
}
依赖关系{
实施项目(“:segmentControlLibrary”)
实施项目(“:googleplayservices_lib”)
api项目(“:webservice”)
实现文件('libs/acra-4.5.0.jar')
实施项目(“:库”)
实现“androidx.appcompat:appcompat:1.1.0”
实现'com.google.android.material:material:1.0.0'
实现“androidx.legacy:legacy-support-v4:1.0.0”
实现“androidx.cardview:cardview:1.0.0”
实现“androidx.recyclerview:recyclerview:1.1.0”
实现“it.sephiroth.android.library.horizontallistview:hlistview:1.3.1”
实现'net.zettetic:android数据库sqlcipher:4.2。0@aar'
实现'com.github.bumptech.glide:glide:4.10.0'
实现'com.github.angads25:filepicker:1.1.0'
实现“androidx.constraintlayout:constraintlayout:1.1.3”
实现'com.squareup.picasso:picasso:2.71828'
实现'fr.avianey.com.viewpagerindicator:library:2.4.1。1@aar'
实现'com.pdftron:pdftron:7.0.3'
实现('com.pdftron:tools:7.0.3'){
排除组:“com.google.code.gson”,模块:“gson”
}
实现'com.android.support:multidex:1.0.3'
编译文件('libs/httpmime-4.5.10.jar')
编译文件('libs/httpcore-4.4.12.jar')
编译文件('libs/httpclient-4.5.10.jar')
实现'com.google.code.gson:gson:2.8.6'
}
试试这个

android{
包装选项{
排除“META-INF/依赖项”
排除“META-INF/许可证”
排除“META-INF/LICENSE.txt”
排除“META-INF/license.txt”
排除“META-INF/通知”
排除“META-INF/NOTICE.txt”
排除“META-INF/notice.txt”
排除“META-INF/ASL2.0”
排除(“META-INF/*.kotlin_模块”)
排除“org/apache/http/version.properties”
排除“org/apache/http/client/version.properties”
排除“org/apache/http/entity/mime/version.properties”
}
}
依赖关系{
实施项目(“:segmentControlLibrary”)
实施项目(“:googleplayservices_lib”)
api项目(“:webservice”)
实现文件('libs/acra-4.5.0.jar')
实施项目(“:库”)
实现“androidx.appcompat:appcompat:1.1.0”
实现'com.google.android.material:material:1.0.0'
实现“androidx.legacy:legacy-support-v4:1.0.0”
实现“androidx.cardview:cardview:1.0.0”
实现“androidx.recyclerview:recyclerview:1.1.0”
实现“it.sephiroth.android.library.horizontallistview:hlistview:1.3.1”
实现'net.zettetic:android数据库sqlcipher:4.2。0@aar'
实现'com.github.bumptech.glide:glide:4.10.0'
实现'com.github.angads25:filepicker:1.1.0'
实现“androidx.constraintlayout:constraintlayout:1.1.3”
实现'com.squareup.picasso:picasso:2.71828'
实现'fr.avianey.com.viewpagerindicator:library:2.4.1。1@aar'
实现'com.pdftron:pdftron:7.0.3'
实现('com.pdftron:tools:7.0.3'){
排除组:“com.google.code.gson”,模块:“gson”
}
实现'com.android.support:multidex:1.0.3'
编译文件('libs/httpmime-4.5.10.jar')
编译文件('libs/httpcore-4.4.12.jar')
编译文件('libs/httpclient-4.5.10.jar')
实现'com.google.code.gson:gson:2.8.6'

}
已删除但仍然是相同的问题已删除但仍然是相同的问题它给出的程序类型已存在:com.pdftron.pdf.tools.BuildConfig…现在它给出的程序类型已存在:com.pdftron.pdf.tools.BuildConfig。。。