Adding crashlytics causes gradle r8 problem

Dear All,

I have a problem while building Android com.android.tools.r8.CompilationFailedException: Compilation failed to complete See the Console for details.

D8: Program type already present: com.google.firebase.unity.BuildConfig

UnityEditor.BuildPlayerWindow:BuildPlayerAndRun() (at /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:136)

I used Firebase Analytics and Cloud Messaging. And there is not any problem. But when I added Crashlytics, my build becomes fails. When I remove crashlytics, no problem.

Also, proguard was chosen as minifier.

PS: Also as I mac user I could not run the Gradle command inside the project to get all logs properly. If any extra information please write to me.

Same also downgrading didn’t make it vanish anymore

: [Unity] ERROR: Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
66: [Unity] ERROR: D8: Program type already present: com.google.firebase.unity.BuildConfig
67: [Unity] ERROR:
68: [Unity] ERROR: FAILURE: Build failed with an exception.
69: [Unity] ERROR:
70: [Unity] ERROR: * What went wrong:
71: [Unity] ERROR: Execution failed for task ':launcher:transformClassesWithMultidexlistForRelease'.
1 Like

Firebase is the most used toolset, but after adding one of its packages without any customization our project becomes down. There is not any information about why crashlytics makes this.

They know about the issue, and most bugs gets reported on that repo.