Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.

ask :app:transformClassesWithMultidexlistForDebug FAILED
AGPBI: {“kind”:“error”,“text”:“Program type already present: com.shopapp.gateway.BuildConfig”,“sources”:[{}],“tool”:“D8”}

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:transformClassesWithMultidexlistForDebug’.

com.android.build.api.transform.TransformException: Error while generating the main dex list:
Error while merging dex archives:
Program type already present: com.shopapp.gateway.BuildConfig
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.