美文网首页
Program type already present: co

Program type already present: co

作者: 星邪Ara | 来源:发表于2019-05-24 15:15 被阅读0次

    一、问题

    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: co

          本文链接:https://www.haomeiwen.com/subject/sfngzqtx.html