Duplicate retrofit2.-KotlinExtensions class

Hey guys

You’ve packaged a class from Retrofit and it’s messing up my build

Execution failed for task ':app:checkDevDebugDuplicateClasses'.
> 1 exception was raised by workers:
  java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class retrofit2.-KotlinExtensions found in modules repackaged_dependencies.jar (io.intercom.android:intercom-sdk-base:5.4.0) and retrofit-2.5.0.jar (com.squareup.retrofit2:retrofit:2.5.0)

If you want to package classes from other libraries inside your library you should be renaming the package, using a plugin like this https://github.com/johnrengelman/shadow

Facing the same issue with my build, do you have a workaround?