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 dependency compilation error when trying to install core and websockets (0.1.9) #96

Open
whoyawn opened this issue Aug 7, 2019 · 11 comments

Comments

@whoyawn
Copy link

whoyawn commented Aug 7, 2019

    implementation 'com.tinder.scarlet:scarlet:0.1.9'
    implementation "com.tinder.scarlet:scarlet-websocket-okhttp:0.1.9"

gives me this when I build:

Duplicate class com.tinder.scarlet.Deserialization found in modules scarlet-core-0.1.9.jar (com.github.tinder.scarlet:scarlet-core:0.1.9) and scarlet-core-0.1.9.jar (com.tinder.scarlet:scarlet-core:0.1.9)
... bunch of other duplicates

Installing only one or the other results in missing packages.

How do I install the plugin without having a bunch of duplicate symbols?

@whoyawn whoyawn changed the title Duplicate dependency compilation error when trying to install core and websockets Duplicate dependency compilation error when trying to install core and websockets (0.1.9) Aug 7, 2019
@aaronweihe
Copy link
Collaborator

it looks like you have com.github.tinder.scarlet:scarlet-core:0.1.9 declared somewhere in your dependencies

@whoyawn
Copy link
Author

whoyawn commented Aug 8, 2019

Those two are the only ones I have. Could this be an issue with the websocket dependency also installing core again?

@akindofyoga
Copy link

I had the same issue. I fixed it by switching to 0.1.17

@whoyawn
Copy link
Author

whoyawn commented Aug 8, 2019

Installing 0.2.4 for both also did the trick for me.

@akindofyoga
Copy link

They said 0.1.x is the production version, so 0.1.17 seemed like a better option.

@aaronweihe
Copy link
Collaborator

I'm not able to reproduce this. can you provide a sample project?

@joelromanpr
Copy link

You can prevent this by taking your root build gradle file and declaring the dependencies in it and then just calling implementation libs.dependency that way you are always sure you are not only not duplicating but also having consistent versions across. In the end gradle is smart enough to resolve its graph and you should not have issues ;)

@akindofyoga
Copy link

I'm not able to reproduce this. can you provide a sample project?

https://github.com/rogerthat94/ScarletError

I get the error when I try building this.

@akindofyoga
Copy link

It looks like I run into the error if I use Scarlet 0.1.9 from Jitpack. But it works fine with Scarlet 0.1.9 from JCenter.

@aaronweihe
Copy link
Collaborator

Scarlet 0.1.8+ are available only in maven central, and the group id is now com.tinder instead of com.github.tinder

@mladen1nf
Copy link

mladen1nf commented Sep 18, 2019

You should use:

implementation 'com.tinder.scarlet:scarlet:0.1.9'
implementation "com.tinder.scarlet:websocket-okhttp:0.1.9"

without scarlet- prefix

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

5 participants