Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate class when library used as a transative dependency #39

Open
bensmiley opened this issue Mar 5, 2021 · 0 comments
Open

Duplicate class when library used as a transative dependency #39

bensmiley opened this issue Mar 5, 2021 · 0 comments

Comments

@bensmiley
Copy link

bensmiley commented Mar 5, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant