iZettle / sdk-android

Add card payments from Zettle to your own app
https://developer.zettle.com/docs/android-sdk
24 stars 20 forks source link

Duplicate class #30

Closed jonassimonaitis closed 3 years ago

jonassimonaitis commented 3 years ago

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

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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