You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I'm using Retrofit in my project, I also added the converter. Unfortunately, there are now three Duplicate classes, that seem to be packaged in both modules. Stack trace below:
* What went wrong:
Execution failed for task ':app:checkDevDebugDuplicateClasses'.
> 1 exception was raised by workers:
java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class moe.banana.jsonapi2.JsonApiConverterFactory found in modules moshi-jsonapi-retrofit-converter-3.5.0.jar (moe.banana:moshi-jsonapi-retrofit-converter:3.5.0) and retrofit-converter-3.5.0.jar (moe.banana.moshi-jsonapi:retrofit-converter:3.5.0)
Duplicate class moe.banana.jsonapi2.JsonApiConverterFactory$MoshiRequestBodyConverter found in modules moshi-jsonapi-retrofit-converter-3.5.0.jar (moe.banana:moshi-jsonapi-retrofit-converter:3.5.0) and retrofit-converter-3.5.0.jar (moe.banana.moshi-jsonapi:retrofit-converter:3.5.0)
Duplicate class moe.banana.jsonapi2.JsonApiConverterFactory$MoshiResponseBodyConverter found in modules moshi-jsonapi-retrofit-converter-3.5.0.jar (moe.banana:moshi-jsonapi-retrofit-converter:3.5.0) and retrofit-converter-3.5.0.jar (moe.banana.moshi-jsonapi:retrofit-converter:3.5.0)
I added moshi-jsonapi to my Android project as follows in the build.gradle:
As I'm using Retrofit in my project, I also added the converter. Unfortunately, there are now three Duplicate classes, that seem to be packaged in both modules. Stack trace below:
Any idea how to fix this @kamikat ?
The text was updated successfully, but these errors were encountered: