braintree_android icon indicating copy to clipboard operation
braintree_android copied to clipboard

Duplicate class lib.android.paypal.com.magnessdk.Environment found in modules

Open TomerBitan24 opened this issue 2 years ago • 3 comments

Braintree SDK Version

4.39.0

Environment

Sandbox

Android Version & Device

11

Braintree dependencies

implementation "com.braintreepayments.api:card:4.39.0" implementation "com.braintreepayments.api:google-pay:4.39.0" implementation "com.braintreepayments.api:paypal:4.39.0" implementation "com.braintreepayments.api:local-payment:4.39.0" implementation "com.braintreepayments.api:data-collector:4.39.0" implementation("com.braintreepayments.api:three-d-secure:4.39.0") implementation 'com.braintreepayments.api:drop-in:6.13.0' implementation 'com.braintreepayments:encryption:2.1.0' implementation 'com.braintreepayments:popup-bridge:3.2.0'

Describe the bug

Hi, i'm trying to use MagnesSDK in my project, and i get this error message:

Duplicate class lib.android.paypal.com.magnessdk.Environment found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.InvalidInputException found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.MagnesResult found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.MagnesSDK found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.MagnesSettings found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.MagnesSettings$Builder found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.MagnesSettings$a found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.MagnesSource found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.a found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.b found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$a found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$b found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$b$a found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$b$b found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$b$c found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$c found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$d found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$d$a found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$d$b found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$d$c found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$d$d found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$d$e found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$d$f found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$e found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$e$a found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$e$b found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$e$c found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$f found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$f$a found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$g found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$h found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$h$a found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$h$b found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$h$c found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$h$d found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$i found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$j found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$k found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$k$a found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$k$b found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$l found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$m found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.c$n found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.d found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.e found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.f found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.f$a found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.g found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.g$a found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.g$b found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.g$c found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.g$d found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.g$e found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.h found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.h$a found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.h$b found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.h$c found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.h$d found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.i found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.j found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.j$a found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.k found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.k$a found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.k$b found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.k$c found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.k$d found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.l found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.l$a found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.l$b found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.m found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.n.a found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.n.b found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.n.c found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.n.d found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.network.base.MagnesNetworking found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.network.base.MagnesNetworkingFactory found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.network.base.MagnesNetworkingFactoryImpl found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.network.base.MagnesNetworkingFactoryImpl$a found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.network.base.PayPalCertificate found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.network.base.a found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.network.base.b found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.network.base.c found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.network.base.d found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.network.base.e found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.network.base.e$a found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.network.base.f found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.o.a found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.o.a$a found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.p.a found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.p.a$a found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.p.b found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0) Duplicate class lib.android.paypal.com.magnessdk.p.b$a found in modules jetified-fraud-protection-1.3.0-runtime (com.paypal.android:fraud-protection:1.3.0) and jetified-paypal-data-collector-4.39.0-runtime (com.braintreepayments.api:paypal-data-collector:4.39.0)

how can resolve this conflict with your library?

To reproduce

To reproduce: set all braintree dependencies as above 2. Try to import magnesSDK

Expected behavior

can run my app without this duplicate

Screenshots

No response

TomerBitan24 avatar Jan 18 '24 10:01 TomerBitan24

Hi @TomerBitan24 thanks for using the Braintree SDK for Android.

Are you by chance using both the Braintree SDK and the PayPal SDK in the same project? Currently we have a limitation with the DataCollector and FraudProtection modules that prevents them from being used in the same project.

sshropshire avatar Jan 18 '24 19:01 sshropshire

we need to use the magnes sdk as part of our project but not for braintree, we see that all braintree dependencies in our project use the magnes sdk, because they use the paypal data collector dependency - https://github.com/braintree/braintree_android/tree/main/PayPalDataCollector/libs

so we can't use it in our project because we get this error of Duplicate class

TomerBitan24 avatar Jan 21 '24 08:01 TomerBitan24

To confirm, are you using both com.braintreepayments.api:data-collector and com.paypal.android:fraud-protection in your project?

sshropshire avatar Jan 24 '24 17:01 sshropshire

Closing this issue due to inactivity - if you are still experiencing this issue please re-open with the requested details!

sarahkoop avatar May 09 '24 14:05 sarahkoop