1

I get this error :

{"kind":"error","text":"Program type already present: com.android.common.constant.DbConstants","sources":[{}],"tool":"D8"}

and I know there is a duplicate library in my project but I don't know witch library duplicated.

can some one help me?

Amir133
  • 2,372
  • 2
  • 18
  • 34

1 Answers1

1
  1. Run the command gradlew app:dependencies to check which dependency is getting repeated .

  2. If you are unable to find out try removing 1 dependency at a time to check which dependency is causing the issue . after finding out the right dependency add { exclude group: 'com.android.common' } below that dependency

  3. If you cannot remove dependencies then try adding { exclude group: 'com.android.common' } below each dependency 1 at a time to find out which dependency is causing the issue .

Manohar
  • 22,116
  • 9
  • 108
  • 144