3rd Party SDK's Integration issue

62 Views Asked by At

There is an issue while integrating 3rd Party SDK's using Heyzap Mediation. I create a sample project to add the Heyzap SDK and test it. Iw works fine but when I tried to add any 3rd party SDK I got Gradle to error.

I'm using Unity 2018.3.11

CommandInvokationFailure: Gradle build failed. 
/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/OpenJDK/MacOS/bin/java -classpath "/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/gradle/lib/gradle-launcher-4.6.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"

stderr[
D8: Program type already present: android.support.v4.app.INotificationSideChannel

FAILURE: Build failed with an exception.

* What went wrong:

    Execution failed for task ':transformDexArchiveWithExternalLibsDexMergerForRelease'.
    > com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archive
1

There are 1 best solutions below

2
On

Have you tried to use "Play services resolver for Unity"?