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 found with FlexBox #24

Closed
H4zh4n opened this issue Dec 3, 2021 · 4 comments
Closed

Duplicate class found with FlexBox #24

H4zh4n opened this issue Dec 3, 2021 · 4 comments

Comments

@H4zh4n
Copy link

H4zh4n commented Dec 3, 2021

If I have both implementations of FlexBox and your ColorPicker (like below) :

implementation 'com.github.Dhaval2404:ColorPicker:2.0'
implementation 'com.google.android.flexbox:flexbox:3.0.0'

I get this error when I run the project :

Execution failed for task ':app:checkDebugDuplicateClasses'.`
 A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
    Duplicate class com.google.android.flexbox.AlignContent found in modules jetified-flexbox-2.0.1-runtime (com.google.android:flexbox:2.0.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)
     Duplicate class com.google.android.flexbox.AlignItems found in modules jetified-flexbox-2.0.1-runtime (com.google.android:flexbox:2.0.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)
     Duplicate class com.google.android.flexbox.AlignSelf found in modules jetified-flexbox-2.0.1-runtime (com.google.android:flexbox:2.0.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)
     Duplicate class com.google.android.flexbox.FlexContainer found in modules jetified-flexbox-2.0.1-runtime (com.google.android:flexbox:2.0.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)
     Duplicate class com.google.android.flexbox.FlexDirection found in modules jetified-flexbox-2.0.1-runtime (com.google.android:flexbox:2.0.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)
     Duplicate class com.google.android.flexbox.FlexItem found in modules jetified-flexbox-2.0.1-runtime (com.google.android:flexbox:2.0.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)
     Duplicate class com.google.android.flexbox.FlexLine found in modules jetified-flexbox-2.0.1-runtime (com.google.android:flexbox:2.0.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)
     Duplicate class com.google.android.flexbox.FlexWrap found in modules jetified-flexbox-2.0.1-runtime (com.google.android:flexbox:2.0.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)
     Duplicate class com.google.android.flexbox.FlexboxHelper found in modules jetified-flexbox-2.0.1-runtime (com.google.android:flexbox:2.0.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)
     Duplicate class com.google.android.flexbox.FlexboxHelper$1 found in modules jetified-flexbox-2.0.1-runtime (com.google.android:flexbox:2.0.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)
     Duplicate class com.google.android.flexbox.FlexboxHelper$FlexLinesResult found in modules jetified-flexbox-2.0.1-runtime (com.google.android:flexbox:2.0.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)
     Duplicate class com.google.android.flexbox.FlexboxHelper$Order found in modules jetified-flexbox-2.0.1-runtime (com.google.android:flexbox:2.0.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)
     Duplicate class com.google.android.flexbox.FlexboxItemDecoration found in modules jetified-flexbox-2.0.1-runtime (com.google.android:flexbox:2.0.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)
     Duplicate class com.google.android.flexbox.FlexboxLayout found in modules jetified-flexbox-2.0.1-runtime (com.google.android:flexbox:2.0.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)
     Duplicate class com.google.android.flexbox.FlexboxLayout$DividerMode found in modules jetified-flexbox-2.0.1-runtime (com.google.android:flexbox:2.0.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)
     Duplicate class com.google.android.flexbox.FlexboxLayout$LayoutParams found in modules jetified-flexbox-2.0.1-runtime (com.google.android:flexbox:2.0.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)
     Duplicate class com.google.android.flexbox.FlexboxLayout$LayoutParams$1 found in modules jetified-flexbox-2.0.1-runtime (com.google.android:flexbox:2.0.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)
     Duplicate class com.google.android.flexbox.FlexboxLayoutManager found in modules jetified-flexbox-2.0.1-runtime (com.google.android:flexbox:2.0.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)
     Duplicate class com.google.android.flexbox.FlexboxLayoutManager$1 found in modules jetified-flexbox-2.0.1-runtime (com.google.android:flexbox:2.0.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)
     Duplicate class com.google.android.flexbox.FlexboxLayoutManager$AnchorInfo found in modules jetified-flexbox-2.0.1-runtime (com.google.android:flexbox:2.0.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)
     Duplicate class com.google.android.flexbox.FlexboxLayoutManager$LayoutParams found in modules jetified-flexbox-2.0.1-runtime (com.google.android:flexbox:2.0.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)
     Duplicate class com.google.android.flexbox.FlexboxLayoutManager$LayoutParams$1 found in modules jetified-flexbox-2.0.1-runtime (com.google.android:flexbox:2.0.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)
     Duplicate class com.google.android.flexbox.FlexboxLayoutManager$LayoutState found in modules jetified-flexbox-2.0.1-runtime (com.google.android:flexbox:2.0.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)
     Duplicate class com.google.android.flexbox.FlexboxLayoutManager$SavedState found in modules jetified-flexbox-2.0.1-runtime (com.google.android:flexbox:2.0.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)
     Duplicate class com.google.android.flexbox.FlexboxLayoutManager$SavedState$1 found in modules jetified-flexbox-2.0.1-runtime (com.google.android:flexbox:2.0.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)
     Duplicate class com.google.android.flexbox.JustifyContent found in modules jetified-flexbox-2.0.1-runtime (com.google.android:flexbox:2.0.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)

Need some help on what to do please.

@H4zh4n H4zh4n changed the title Duplicate class found Duplicate class found with FlexBox Dec 3, 2021
@H4zh4n
Copy link
Author

H4zh4n commented Dec 3, 2021

I didn't mention why I have ColorPicker:2.0 Instead of ColorPicker:2.2,
It is because I get below error with 2.2

Could not find com.github.Dhaval2404:ColorPicker:2.2.
Required by:
    project :app

OR this upon sync :

Failed to resolve: com.github.Dhaval2404:ColorPicker:2.2

Same thing with 2.1 as I saw it was latest in releases, but 2.2 was written in README

@Dhaval2404
Copy link
Owner

@H4zh4n I messed up while releasing v2.1 and v2.2 updates. I will try to fix the issue by tomorrow.

@Dhaval2404
Copy link
Owner

@H4zh4n I have released v2.3. Please give it a try

@H4zh4n
Copy link
Author

H4zh4n commented Dec 3, 2021

@H4zh4n I have released v2.3. Please give it a try

Works perfectly, thanks a ton.

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

2 participants