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

Question Duplicate class found in modules

Discussion in 'Formats & External Tools' started by Wattosan, Dec 7, 2021.

  1. Wattosan

    Wattosan

    Joined:
    Mar 22, 2013
    Posts:
    450
    Hello,

    I am trying to make a build for the Pico device. I am using their Unity XR SDK v2.0.1 and Unity 2021.1.28f1. However, when building I stumbled upon a duplicate class error:
    upload_2021-12-7_15-8-27.png

    I am also using SentryIO for diagnostics. I discovered that SentryIO is using gson 2.8.5 and that the Pico SDK is using gson 2.8.0. The issue is that while the Sentry's gson is a .dll file inside its package directory, then the Pico's gson is inside an .aar file.

    I realize I need to get rid of one of them or somehow make them work together. Any help on how to do this is much appreciated!