Search Unity

Duplicate Classes When Building for Android

Discussion in 'Android' started by uri-bsg, Jul 18, 2021.

  1. uri-bsg

    uri-bsg

    Joined:
    Jan 24, 2021
    Posts:
    1
    When I attempt to build for android, I get a whole bunch of errors (2888), most of which are of the form:

    java.lang.RuntimeException: Duplicate class android.support.customtabs.ICustomTabsCallback found in modules classes.jar ( : androidx.browser.browser-1.0.0 : ) and classes.jar (androidx.browser:browser:1.0.0)UnityEngine.GUIUtility: ProcessEvent(Int32, IntPtr)

    Unity version: 2019.4.16f1

    Packages:
    • Firebase Analytics
    • Firebase Crashlytics
    • Facebook
    • Unity Purchasing
    • Newtonsoft
    I was not getting these errors until I added the two firebase packages.

    Posting a new thread as per advice of moderator in this thread.