hello, currently i am trying to make mobile appliation using react native and the application includes the feature that scan cards via nfc and i want to check the card information is correct and after i will send the details to the bank, now i am trying to integrate sdk provided by visa which is jar file but got an errror duplicate class
Hi @tilahun,
To investigate the error, please provide the information below.
1. End Point
2. Request Header
3. Request Body
4. Response Header (include the x-correlation-id)
5. Response Body
You can find the x-correlation-id in the response header.
i was just adding sdk jar file to react native and when i try to run the app it comes with an error duplicate class
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
> Duplicate class com.google.common.util.concurrent.ListenableFuture found in modules jetified-listenablefuture-1.0 (com.google.guava:listenablefuture:1.0) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class com.google.errorprone.annotations.CanIgnoreReturnValue found in modules jetified-error_prone_annotations-2.15.0 (com.google.errorprone:error_prone_annotations:2.15.0) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class com.google.errorprone.annotations.CheckReturnValue found in modules jetified-error_prone_annotations-2.15.0 (com.google.errorprone:error_prone_annotations:2.15.0) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class com.google.errorprone.annotations.CompatibleWith found in modules jetified-error_prone_annotations-2.15.0 (com.google.errorprone:error_prone_annotations:2.15.0) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class com.google.errorprone.annotations.CompileTimeConstant found in modules jetified-error_prone_annotations-2.15.0 (com.google.errorprone:error_prone_annotations:2.15.0) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class com.google.errorprone.annotations.DoNotCall found in modules jetified-error_prone_annotations-2.15.0 (com.google.errorprone:error_prone_annotations:2.15.0) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class com.google.errorprone.annotations.DoNotMock found in modules jetified-error_prone_annotations-2.15.0 (com.google.errorprone:error_prone_annotations:2.15.0) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class com.google.errorprone.annotations.ForOverride found in modules jetified-error_prone_annotations-2.15.0 (com.google.errorprone:error_prone_annotations:2.15.0) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class com.google.errorprone.annotations.FormatMethod found in modules jetified-error_prone_annotations-2.15.0 (com.google.errorprone:error_prone_annotations:2.15.0) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class com.google.errorprone.annotations.FormatString found in modules jetified-error_prone_annotations-2.15.0 (com.google.errorprone:error_prone_annotations:2.15.0) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class com.google.errorprone.annotations.Immutable found in modules jetified-error_prone_annotations-2.15.0 (com.google.errorprone:error_prone_annotations:2.15.0) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class com.google.errorprone.annotations.IncompatibleModifiers found in modules jetified-error_prone_annotations-2.15.0 (com.google.errorprone:error_prone_annotations:2.15.0) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class com.google.errorprone.annotations.InlineMe found in modules jetified-error_prone_annotations-2.15.0 (com.google.errorprone:error_prone_annotations:2.15.0) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class com.google.errorprone.annotations.InlineMeValidationDisabled found in modules jetified-error_prone_annotations-2.15.0 (com.google.errorprone:error_prone_annotations:2.15.0) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class com.google.errorprone.annotations.MustBeClosed found in modules jetified-error_prone_annotations-2.15.0 (com.google.errorprone:error_prone_annotations:2.15.0) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class com.google.errorprone.annotations.NoAllocation found in modules jetified-error_prone_annotations-2.15.0 (com.google.errorprone:error_prone_annotations:2.15.0) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class com.google.errorprone.annotations.OverridingMethodsMustInvokeSuper found in modules jetified-error_prone_annotations-2.15.0 (com.google.errorprone:error_prone_annotations:2.15.0) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class com.google.errorprone.annotations.RequiredModifiers found in modules jetified-error_prone_annotations-2.15.0 (com.google.errorprone:error_prone_annotations:2.15.0) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class com.google.errorprone.annotations.RestrictedApi found in modules jetified-error_prone_annotations-2.15.0 (com.google.errorprone:error_prone_annotations:2.15.0) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class com.google.errorprone.annotations.SuppressPackageLocation found in modules jetified-error_prone_annotations-2.15.0 (com.google.errorprone:error_prone_annotations:2.15.0) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class com.google.errorprone.annotations.Var found in modules jetified-error_prone_annotations-2.15.0 (com.google.errorprone:error_prone_annotations:2.15.0) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class com.google.errorprone.annotations.concurrent.GuardedBy found in modules jetified-error_prone_annotations-2.15.0 (com.google.errorprone:error_prone_annotations:2.15.0) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class com.google.errorprone.annotations.concurrent.LazyInit found in modules jetified-error_prone_annotations-2.15.0 (com.google.errorprone:error_prone_annotations:2.15.0) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class com.google.errorprone.annotations.concurrent.LockMethod found in modules jetified-error_prone_annotations-2.15.0 (com.google.errorprone:error_prone_annotations:2.15.0) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class com.google.errorprone.annotations.concurrent.UnlockMethod found in modules jetified-error_prone_annotations-2.15.0 (com.google.errorprone:error_prone_annotations:2.15.0) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.CheckForNull found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.CheckForSigned found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.CheckReturnValue found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.Detainted found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.MatchesPattern found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.MatchesPattern$Checker found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.Nonnegative found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.Nonnegative$Checker found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.Nonnull found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.Nonnull$Checker found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.Nullable found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.OverridingMethodsMustInvokeSuper found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.ParametersAreNonnullByDefault found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.ParametersAreNullableByDefault found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.PropertyKey found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.RegEx found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.RegEx$Checker found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.Signed found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.Syntax found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.Tainted found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.Untainted found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.WillClose found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.WillCloseWhenClosed found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.WillNotClose found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.concurrent.GuardedBy found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.concurrent.Immutable found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.concurrent.NotThreadSafe found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.concurrent.ThreadSafe found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.meta.Exclusive found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.meta.Exhaustive found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.meta.TypeQualifier found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.meta.TypeQualifierDefault found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.meta.TypeQualifierNickname found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.meta.TypeQualifierValidator found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Duplicate class javax.annotation.meta.When found in modules jetified-jsr305-3.0.2 (com.google.code.findbugs:jsr305:3.0.2) and jetified-lps-client-1.33.1-SNAPSHOT-jar-with-dependencies (lps-client-1.33.1-SNAPSHOT-jar-with-dependencies.jar)
Hi @tilahun,
Are you still experiencing an error? If you need assistance please let me know the API product you're receiving this error on. If you no longer need help, please let me know so I can take you off my contact list. If I don't hear from you in 3 days, I'll take you off my contact list. Feel free to reach out anytime if you have questions.
yes i am still experiencing the issue
Hi @tilahun,
What is the API product that you're using? For a list of API products, please refer to this link: https://developer.visa.com/apibrowser
To investigate the error, please provide these details.
1. End Point
2. Request Header
3. Request Body
4. Response Header (include the x-correlation-id)
5. Response Body
You can find the x-correlation-id in the response header.
Hi @tilahun,
If you're experiencing an error, please provide the information asked of you in my previous post. If the error is fixed, please let me know so I can take you off my contact list.
Hi @tilahun,
I haven't received a reply from you so I'll take you off my contact list.