使用Heyzap中介集成3rd Party SDK时出现问题。我创建一个示例项目以添加Heyzap SDK并对其进行测试。 Iw正常工作,但是当我尝试添加任何第三方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
答案 0 :(得分:1)
您是否尝试过使用“ Unity的播放服务解析器”?