0

使用 Heyzap 中介集成第 3 方 SDK 时出现问题。我创建了一个示例项目来添加 Heyzap SDK 并对其进行测试。Iw 工作正常,但是当我尝试添加任何 3rd 方 SDK 时,我让 Gradle 出错。

我正在使用 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
4

1 回答 1

1

您是否尝试过使用“Play services resolver for Unity”?

于 2019-08-30T17:33:08.350 回答