0

I have 2 libs that I know that has dependency to different versions of the 3rd one. I get a compile error of Duplicate class.

enter image description here

Uriel Frankel
  • 14,304
  • 8
  • 47
  • 69
  • Not sure if you've seen: [Transitive dependencies not resolved for aar library using gradle](https://stackoverflow.com/q/22795455/295004) but you should provide detail about what you've tried/how your project build is structured. – Morrison Chang May 29 '22 at 06:57

1 Answers1

2

try this:

implementation(Lib A){
   exclude module : 'lib c' 
}
farid
  • 300
  • 1
  • 8
  • this is what i did and it works implementation('com.amplifyframework:aws-storage-s3:1.35.4') { exclude group: 'com.google.android.play', module: 'core' } – Uriel Frankel May 29 '22 at 09:22