Skip to content

When building for the Android platform, there is a duplicate reference issue with AppLovin MAX mediation Pangle #2

@LagField

Description

@LagField

When integrating this SDK, and also integrating the AppLovin MAX SDK and Pangle mediation at the same time, building the Android app will report a checkReleaseDuplicateClasses error:

* What went wrong:
Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
   > Duplicate class com.tiktok.BuildConfig found in modules jetified-tiktok-business-android-sdk-comp-1.3.7-rc.2-runtime (com.pangle.global:tiktok-business-android-sdk-comp:1.3.7-rc.2) and jetified-tiktok-business-android-sdk-runtime (:tiktok-business-android-sdk:)

In AppLovin MAX, the dependency configuration for Pangle is in the Assets/MaxSdk/Mediation/ByteDance/Editor/Dependencies.xml file, with the following contents:

<?xml version="1.0" encoding="utf-8"?>
<dependencies>
    <androidPackages>
        <androidPackage spec="com.applovin.mediation:bytedance-adapter:7.3.0.4.0">
            <repositories>
                <repository>https://artifact.bytedance.com/repository/pangle</repository>
            </repositories>
        </androidPackage>
    </androidPackages>
    <iosPods>
        <iosPod name="AppLovinMediationByteDanceAdapter" version="7.4.1.0.0" />
    </iosPods>
</dependencies>

I think it conflicts with the tt sdk's Assets\TikTokBusinessSDK\Plugins\Android\tiktok-business-android-sdk.aar file.

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