Program type already present: com.ara.main.BuildConfig

一、问题

AGPBI: {"kind":"error","text":"Program type already present: com.xxx.main.BuildConfig","sources":[{}],"tool":"D8"}

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformClassesWithMultidexlistForBetaDebug'.
> com.android.build.api.transform.TransformException: Error while generating the main dex list:
  Error while merging dex archives: 
  Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
  Program type already present: com.ara.main.BuildConfig

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

二、解决
1、jar包或第三方库冲突

2、包名冲突,多个模块情况有相同包名,把重复的包名改掉、

你可能感兴趣的:(Program type already present: com.ara.main.BuildConfig)