Search Unity

Bug Duplicate UDP.dll

Discussion in 'Unity Distribution Portal (UDP)' started by nicolasgramlich, Sep 23, 2020.

  1. nicolasgramlich

    nicolasgramlich

    Joined:
    Sep 21, 2017
    Posts:
    231
    Hey everyone,

    I just added UDP 2.0.0 to my project via the package manager (I wasn't using UDP before, just IAP) and ran into an error due to a duplicate
    UDP.dll
    :
    Code (CSharp):
    1. PrecompiledAssemblyException: Multiple precompiled assemblies with the same name UDP.dll included or the current platform. Only one assembly with the same name is allowed per platform. Assembly paths:
    2. Assets/Plugins/UDP/UDP.dll
    3. /Users/ngramlic/Games/LegionCommander/Library/PackageCache/com.unity.purchasing.udp@2.0.0/Runtime/UDP.dll
    There is already a "UDP.dll" in
    Assets/Plugins/UDP/UDP.dll
    , according to my git log it was added a couple weeks ago when I apparently did this:

    Is it safe to delete the
    Assets/Plugins/UDP/*
    and be done with it? There appears to be a couple additional file(s) beyond the DLL, i.e.
    EditorAnalytcisApi
    ,
    ProjectBuildEvent
    , ... that appear to duplicate the ones from the UDP 2.0.0 package I just added.

    What's the recommended way of proceeding? Should I maybe reimport all the the IAP/UDP assets/packages?

    Thanks,
    Nico
     
  2. nicolasgramlich

    nicolasgramlich

    Joined:
    Sep 21, 2017
    Posts:
    231
    The compile errors appear to be gone after nuking
    Assets/Plugins/UDP/*
    and recreating
    Assets/Plugins/UDP/Resources/UDP Settings.asset
    :)
     
    Rem777, thiagolrosa and SamOYUnity3D like this.
  3. thiagolrosa

    thiagolrosa

    Joined:
    Feb 22, 2017
    Posts:
    60
    I had the same issue and your solution worked!