Program type already present: BuildConfig

后端 未结 13 1470
后悔当初
后悔当初 2020-12-13 08:36

I\'m trying to generate a release build but im not able because of mutidex issues my project has all the multidex enabled and dependencies added

The error i\'m rece

相关标签:
13条回答
  • 2020-12-13 09:07

    Error: Program type already present: somemodule/BuildConfig

    Cause

    In my case I had a (hidden) circular dependency which Android Studio did not find:

    1. testutils/build.gradle uses implementation project(':somemodule')

    2. somemodule/build.gradle had `androidTestImplementation project(":testutils")

    Solution

    • in my case the second dependency was not neccessary so I removed it
    0 讨论(0)
提交回复
热议问题