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

标签 android gradle android-build android-install-apk

我正在尝试创建我的项目的构建,但出现错误“程序类型已存在: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。

最佳答案

删除

实现 'com.google.android.material:material:1.1.0-alpha06'

你已经在上面声明了 Material 库

实现 'com.google.android.material:material:1.0.0'

关于android - 程序类型已经存在 : com. android.internal.http.multipart.ByteArrayPartSource,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59420951/

相关文章:

android - 由于它是在另一台PC上构建的,因此我无法同步我的android项目。怎么解决呢?

android - cc_prebuilt_library_shared 模块无法识别的属性 "cflags"

android - 通过 Android SDK 管理器下载缓慢的 SDK

java - Android 无法捕获图像

android - NDK_TOOLCHAIN 被定义为不受支持的值

android - Eclipse在学习android中无法导入jtwitter-yamba.jar

c - 仅使用 Gradle 构建静态库

android - 仅在 ListView 顶部时刷新屏幕(Android Studio)

gradle - 什么是Gradle依赖项配置?

android - 运行调试变体时启动时出现白屏