Skip to content

Duplicate class when library used as a transative dependency #39

@bensmiley

Description

@bensmiley

I have a popular open-source library and I'm using SmartRecyclerAdapter for some of the table views. However, when I include the dependency in my project and push it to Bintray, if I include the library I get these errors:

Duplicate class io.github.manneohlund.smartrecycleradapter.viewevent.BuildConfig found in modules 

jetified-smart-recycler-adapter-viewevent-1.0.0-beta03-runtime (io.github.manneohlund.smart-recycler-adapter:smart-recycler-adapter-viewevent:5.0.0-rc01) and jetified-smart-recycler-adapter-viewevent-1.0.0-beta03-runtime (io.github.manneohlund:smart-recycler-adapter-viewevent:1.0.0-beta03)

Duplicate class smartadapter.viewevent.dragdrop.AutoDragAndDropBinder found in modules 

jetified-smart-recycler-adapter-viewevent-1.0.0-beta03-runtime (io.github.manneohlund.smart-recycler-adapter:smart-recycler-adapter-viewevent:5.0.0-rc01) and jetified-smart-recycler-adapter-viewevent-1.0.0-beta03-runtime (io.github.manneohlund:smart-recycler-adapter-viewevent:1.0.0-beta03)

chat-sdk-android-v5-gradle.zip

Here is a project that demonstrates the issue. To summarise. When Library A includes the dependency:

api 'io.github.manneohlund:smart-recycler-adapter:5.0.0-rc01'
api 'io.github.manneohlund:smart-recycler-adapter-viewevent:1.0.0-beta03'

If library A is published to Bintray and Library B includes a dependency to library A, these errors appear. Your project is great and it would be a shame if it couldn't be included in third-party projects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions