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 #30

Closed
jonassimonaitis opened this issue Jun 8, 2021 · 4 comments
Closed

Duplicate class #30

jonassimonaitis opened this issue Jun 8, 2021 · 4 comments
Assignees
Labels
bug Something isn't working resolved

Comments

@jonassimonaitis
Copy link

Expected Behavior

After update from com.izettle.payments:android-sdk-ui:1.8.9 to com.izettle.payments:android-sdk-ui:1.14.15 the app does not start run.

Current Behavior

Works with the old version

  • Operating Version: Android
  • SDK version: 1.8.9

Failure Logs

Duplicate class lib.android.paypal.com.magnessdk.Environment found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.InvalidInputException found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.MagnesResult found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.MagnesSDK found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.MagnesSettings found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.MagnesSettings$1 found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.MagnesSettings$Builder found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.MagnesSource found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.R found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.a found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.a.a found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.a.b found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.a.c found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.b found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.b.a found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.c found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.d found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.d$1 found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.d$a found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.d$b found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.e found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.network.MagnesNetworkingFactoryImpl found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.network.PayPalCertificate found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.network.a found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.network.b found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.network.c found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.network.d found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.network.e found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.network.f found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.network.g found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.network.h found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.network.httpclient.MagnesNetworking found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.network.httpclient.MagnesNetworkingFactory found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.network.i found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.network.j found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.network.k found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.network.l found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.network.m found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.network.n found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
Duplicate class lib.android.paypal.com.magnessdk.network.o found in modules jetified-android-sdk-1.14.15-runtime (com.izettle.payments:android-sdk:1.14.15) and jetified-data-collector-3.7.2-runtime (com.paypal.android.sdk:data-collector:3.7.2)
@bobzettle
Copy link
Contributor

Hi @jonassimonaitis, thank you for reporting.
I'll add this to our backlog so it will get attention and keep this issue up to date.

Could you provide me with this info:
compileSdkVersion and if your using kotlin or java.

@bobzettle bobzettle added the bug Something isn't working label Jun 15, 2021
@bobzettle bobzettle self-assigned this Jun 15, 2021
@bobzettle
Copy link
Contributor

We have tried to reproduce the build problem described without success.
Just after switching the SDK version we got a checkDebugDuplicateClasses error and resolved that with a ./gradlew clean
Have you tried this?

We will mark this issue as resolved and close it if it stays inactive for one week.
Please add more comments, and more details if you need further assistance.

@jonassimonaitis
Copy link
Author

jonassimonaitis commented Jul 1, 2021

Sorry for the late replay. I have tried ./gradlew clean with no luck. Keep getting the same error message.
Btw compileSdkVersion 28 and 100% Kotlin

@jonassimonaitis
Copy link
Author

Found that com.braintreepayments.api:braintree:3.7.2 lib was causing this error. Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working resolved
Projects
None yet
Development

No branches or pull requests

2 participants