Duplicate UDP.dll

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:

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:
Assets/Plugins/UDP/UDP.dll
/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

The compile errors appear to be gone after nuking Assets/Plugins/UDP/* and recreating Assets/Plugins/UDP/Resources/UDP Settings.asset :slight_smile:

3 Likes

I had the same issue and your solution worked!