我使用unity 2017.2并在构建APK文件时遇到此错误
ArgumentException: The Assembly System.Reflection.Emit is referenced by
Microsoft.AspNetCore.SignalR.Core
('Assets/Plugins/Microsoft.AspNetCore.SignalR.Core.dll'). But the dll is not
allowed to be included or could not be found.
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String
assemblyPath, System.Collections.Generic.List`1[T] alreadyFoundAssemblies,
System.String[] allAssemblyPaths, System.String[] foldersToSearch,
System.Collections.Generic.Dictionary`2[TKey,TValue] cache,
UnityEditor.BuildTarget target) (at
C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:152)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths,
System.String[] foldersToSearch, UnityEditor.BuildTarget target) (at
C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:192)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
我的项目需要使用.Net 4.6。所以,我在播放器设置中改变了它。当我在编辑器中点击播放时,我没有任何错误,但是当我想要构建它时,这就是它失败的地方。
希望有人可以帮助我。谢谢