Duplicate dependencies when using UIKit & Push-FCM

I’m trying to update the Android UI kit to version 4.0.0-beta26 and the FCM dependency to 6.45.0:

    implementation 'com.github.AmityCo.Amity-Social-Cloud-UIKit-Android:amity-uikit:4.0.0-beta26'
    implementation 'com.github.AmityCo.Amity-Social-Cloud-SDK-Android:amity-push-fcm:6.45.0'

And this gets duplicate classes error:

Duplicate class com.amity.socialcloud.sdk.log.AmityLog found in modules jetified-amity-log-6.45.0-runtime (co.amity.android:amity-log:6.45.0) and jetified-amity-log-6.45.0-runtime (com.github.AmityCo.Amity-Social-Cloud-SDK-Android:amity-log:6.45.0)
Duplicate class com.amity.socialcloud.sdk.log.AmityLogProvider found in modules jetified-amity-log-6.45.0-runtime (co.amity.android:amity-log:6.45.0) and jetified-amity-log-6.45.0-runtime (com.github.AmityCo.Amity-Social-Cloud-SDK-Android:amity-log:6.45.0)
Duplicate class com.amity.socialcloud.sdk.log.AmityLogProvider$Companion found in modules jetified-amity-log-6.45.0-runtime (co.amity.android:amity-log:6.45.0) and jetified-amity-log-6.45.0-runtime (com.github.AmityCo.Amity-Social-Cloud-SDK-Android:amity-log:6.45.0)
Duplicate class com.amity.socialcloud.sdk.push.EkoPushContract found in modules jetified-core-push-6.45.0-runtime (co.amity.android:core-push:6.45.0) and jetified-core-push-6.45.0-runtime (com.github.AmityCo.Amity-Social-Cloud-SDK-Android:core-push:6.45.0)
Duplicate class com.amity.socialcloud.sdk.push.EkoPushContractWrapper found in modules jetified-core-push-6.45.0-runtime (co.amity.android:core-push:6.45.0) and jetified-core-push-6.45.0-runtime (com.github.AmityCo.Amity-Social-Cloud-SDK-Android:core-push:6.45.0)
Duplicate class com.amity.socialcloud.sdk.push.EkoPushContractWrapper$Companion found in modules jetified-core-push-6.45.0-runtime (co.amity.android:core-push:6.45.0) and jetified-core-push-6.45.0-runtime (com.github.AmityCo.Amity-Social-Cloud-SDK-Android:core-push:6.45.0)
Duplicate class com.amity.socialcloud.sdk.push.PushInitProvider found in modules jetified-core-push-6.45.0-runtime (co.amity.android:core-push:6.45.0) and jetified-core-push-6.45.0-runtime (com.github.AmityCo.Amity-Social-Cloud-SDK-Android:core-push:6.45.0)
Duplicate class com.amity.socialcloud.sdk.push.PushInitProvider$Companion found in modules jetified-core-push-6.45.0-runtime (co.amity.android:core-push:6.45.0) and jetified-core-push-6.45.0-runtime (com.github.AmityCo.Amity-Social-Cloud-SDK-Android:core-push:6.45.0)
Duplicate class com.amity.socialcloud.sdk.push.PushService found in modules jetified-core-push-6.45.0-runtime (co.amity.android:core-push:6.45.0) and jetified-core-push-6.45.0-runtime (com.github.AmityCo.Amity-Social-Cloud-SDK-Android:core-push:6.45.0)

Any workaround for this?

Hello @franco , Let me pass all this to check with my team and i’ll back to you.

@franco Our team recommends switching from JitPack to Maven for the SDK-FCM dependency to ensure better stability and compatibility.

You can follow the tutorial available at the link below for guidance:
Installation and Authentication - Maven Central

If you encounter any issues or have further questions, please don’t hesitate to reach out.

Thanks, I already have mavenCentral with higher priority than jitpack, but need to keep jitpack for other dependencies.

Hello @franco , Thank you for the update. Please note that when migrating to Maven Central, you need to update the dependency package name as mentioned in the documentation:

co.amity.android:amity-push-fcm:6.45.0

This ensures compatibility and proper functionality with the latest setup. Let us know if you need further assistance.