Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

One possible solution to resolve the duplicate classes error when including these dependencies in an Android project is to use the exclude command in the build.gradle file.

For example, you can exclude specific classes or packages from being included in the final build by adding the exclude command to the dependencies section of the file.

Here's an example of how to exclude the duplicate classes between sendbird-live-uikit and sendbird.sdk:uikit dependencies:

dependencies {
    implementation ('com.sendbird.sdk:sendbird-live-uikit:1.0.10') {
        exclude group: 'com.sendbird.sdk', module: 'sendbird-uikit'
    }
    implementation 'com.sendbird.sdk:sendbird-android-sdk:3.0.148'
    implementation 'com.sendbird.sdk:sendbird-calls:1.1.10'
}

This code excludes the sendbird-uikit module from the com.sendbird.sdk:sendbird-live-uikit dependency, so it won't conflict with the sendbird.sdk:uikit dependency.

You can use a similar approach to exclude other modules or libraries that are causing duplicate classes errors.