Program type already present:

上下文:集成bugly后,再集成另外一个安全的aar出现如下问题
AGPBI: {“kind”:“error”,“text”:“Program type already present: com.tencent.bugly.Bugly”,“sources”:[{}],“tool”:“D8”}

AGPBI: {"kind":"error","text":"Program type already present: com.tencent.bugly.Bugly","sources":[{}],"tool":"D8"}
:app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\0.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\1.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\2.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\3.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\4.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\8.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\9.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\11.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\14.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\19.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\21.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\22.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\23.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\24.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\25.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\26.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\27.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\28.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\29.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\30.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\31.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\32.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\33.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\34.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\35.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\36.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\37.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\38.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\39.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\40.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\41.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\42.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\43.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\44.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\45.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\46.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\47.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\48.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\49.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\50.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\51.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\52.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\53.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\54.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\55.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\56.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\57.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\58.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\59.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\60.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\61.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\62.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\63.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\64.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\65.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\66.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\67.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\68.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\69.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\70.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\71.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\72.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\73.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\74.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\75.jar, E:\as_workspace\card_issuing\app\build\intermediates\transforms\dexBuilder\debug\76.jar

原因:依赖冲突
解决办法:一山不容二虎,aar包中去除了bugly的依赖

你可能感兴趣的:(Program type already present:)