AGPBI: {"kind":"error","text":"Program type already present: com.blankj.utilcode.BuildConfig","sourc

如果最近小伙伴们遇到了这个错误:
AGPBI: {“kind”:“error”,“text”:“Program type already present: com.blankj.utilcode.BuildConfig”,“sources”:[{}],“tool”:“D8”}

Task :app:buildInfoGeneratorDebug
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: /android/android_program/pwqgc/app/build/intermediates/transforms/dexBuilder/debug/0.jar, /android/android_program/pwqgc/app/build/intermediates/transforms/dexBuilder/debug/1.jar, /android/android_program/pwqgc/app/build/intermediates/transforms/dexBuilder/debug/2.jar, /android/android_program/pwqgc/app/build/intermediates/transforms/dexBuilder/debug/3.jar, /android/android_program/pwqgc/app/build/intermediates/transforms/dexBuilder/debug/4.jar, /android/android_program/pwqgc/app/build/intermediates/transforms/dexBuilder/debug/5.jar, /android/android_program/pwqgc/app/build/intermediates/transforms/dexBuilder/debug/6.jar, /android/android_program/pwqgc/app/build/intermediates/transforms/dexBuilder/debug/7.jar, /android/android_program/pwqgc/app/build/intermediates/transforms/dexBuilder/debug/8.jar, /android/android_program/pwqgc/app/build/intermediates/transforms/dexBuilder/debug/9.jar, /android/android_program/pwqgc/app/build/intermediates/transforms/dexBuilder/debug/10.jar, /android/android_program/pwqgc/app/build/intermediates/transforms/dexBuilder/debug/11.jar, /android/android_program/pwqgc/app/build/intermediates/transforms/dexBuilder/debug/12.jar, /android/android_program/pwqgc/app/build/intermediates/transforms/dexBuilder/debug/13.jar, /android/android_program/pwqgc/app/build/intermediates/transforms/dexBuilder/debug/14.jar, /

你可能感兴趣的:(Android)