升级Unity2018.3.2f1出现PrecompiledAssemblyException: Multiple precompiled assemblies with the same name

最近升级Unity2018.3.2f1出现 PrecompiledAssemblyException: Multiple precompiled assemblies with the same name UnityEngine.Advertisements.Editor.dll included for the current platform. Only one assembly with the same name is allowed per platform.

什么鬼?

我也不知道!

后来发现吃面包长大的娃娃们已经有了解决方法,这里我贴一下:
Just wanted to let everyone know we are aware of an issue when upgrading to 2018.3.

If you have the Unity Ads SDK from the Asset Store, when you upgrade to 2018.3, the Ads SDK from the Package Manager will still be included, which gives you the following error:

PrecompiledAssemblyException: Multiple precompiled assemblies with the same name UnityEngine.Advertisements.Editor.dll included for the current platform. Only one assembly with the same name is allowed per platform.

The solution is to remove the Ads package from Package Manager, but unfortunately, the compiler error will prevent the Package Manager UI from rendering correctly. The workaround is to remove the package manually from the /Packages/manifest.json file.

I apologize for any inconvenience this has caused.

意思就是要在package manager中删掉ads那个包。然后把Packages/manifest.json里面ads那一段也删了。

然后,我发现,我们项目毛都没用。

于是我搜索了那个说重复的dll。尼玛,果然,我们项目中有两个。尼玛。这个问题在Unity5.6.6中不会报错。但是在Unity2018.3.2f1中会出现,而且会导致你打不了安卓包。

我记录一下。希望能帮助各位。

我靠,一泡尿,快把我憋死了。我要放水去。不准偷看。重要事情说一遍。

你可能感兴趣的:(一窥长短,升级Unity)