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 in in-app purchase and reader-sdk #40

Open
darkengine opened this issue Jan 15, 2022 · 0 comments
Open

Duplicate class in in-app purchase and reader-sdk #40

darkengine opened this issue Jan 15, 2022 · 0 comments

Comments

@darkengine
Copy link

We got "Duplicate class com.squareup.Pan found in modules jetified-card-42.jar (com.squareup.android:card:42) and jetified-reader-sdk-internals-1.5.1.jar (com.squareup.sdk.reader:reader-sdk-internals:1.5.1)" error when building our project which support Square in-app purchase and reader SDK.

We can get through this error by adding exclude statement:

    implementation("com.squareup.sdk.in-app-payments:card-entry:1.5.0") {
        exclude group : 'com.squareup.android',module:'card'
    }

However it will crash when taking payment with in-app purchase.

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/squareup/Card$Brand;
        at sqip.internal.CardEditorState.<init>(CardEditorState.kt:23)
        at sqip.internal.BaseCardEntryActivity.onCreate(BaseCardEntryActivity.kt:119)
        at sqip.internal.CardEntryActivity.onCreate(CardEntryActivity.kt:38)
        at android.app.Activity.performCreate(Activity.java:8183)
        at android.app.Activity.performCreate(Activity.java:8167)

Please help resolve this issue.

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

1 participant