Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Adding crashlytics causes gradle r8 problem

Discussion in 'Android' started by ykdevvv, Oct 10, 2020.

  1. ykdevvv

    ykdevvv

    Joined:
    Apr 24, 2020
    Posts:
    2
    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.

    upload_2020-10-10_9-37-23.png

    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.
     
  2. Dazo1985

    Dazo1985

    Joined:
    Mar 13, 2019
    Posts:
    26
    Same also downgrading didn't make it vanish anymore
    Code (CSharp):
    1. : [Unity] ERROR: Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    2. 66: [Unity] ERROR: D8: Program type already present: com.google.firebase.unity.BuildConfig
    3. 67: [Unity] ERROR:
    4. 68: [Unity] ERROR: FAILURE: Build failed with an exception.
    5. 69: [Unity] ERROR:
    6. 70: [Unity] ERROR: * What went wrong:
    7. 71: [Unity] ERROR: Execution failed for task ':launcher:transformClassesWithMultidexlistForRelease'.
     
    ykdevvv likes this.
  3. ykdevvv

    ykdevvv

    Joined:
    Apr 24, 2020
    Posts:
    2
    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.
     
  4. starstablesimon

    starstablesimon

    Joined:
    Nov 24, 2016
    Posts:
    18