Skip to content

Duplicate classes from Twint SDK #1

@M-Wong

Description

@M-Wong

The Wallee Payment SDK 1.4.5 uses the Wallee Twint SDK Version 1.2.6 as a dependency. That SDK contains two wrongly obfuscated classes (a.a and a.b) which causes clashes with other libraries that may include a dependency on the Twint SDK (or other libraries that wrongly obfuscate their classes).
You can see those classes when inspecting the AAR file:
Image

The issue we're seeing is when we include another dependency (we're also working with them to get the issue fixed on their end), that contains the same classes. The Gradle build then fails with the following error message:

Duplicate class a.a found in modules other-library-1.0.0.aar -> other-library-1.0.0-runtime (com.other:library:1.0.0) and twint-sdk-1.2.6.aar -> twint-sdk-1.2.6-runtime (com.wallee.resources:twint-sdk:1.2.6)
Duplicate class a.b found in modules other-library-1.0.0.aar -> other-library-1.0.0-runtime (com.other:library:1.0.0) and twint-sdk-1.2.6.aar -> twint-sdk-1.2.6-runtime (com.wallee.resources:twint-sdk:1.2.6)

The same issue was discovered and fixed by Twint in the Adyen Android SDK here: Adyen/adyen-android#1767
I would assume using a newer version of the Twint SDK would automatically fix this issue for you as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions