Unity构建和运行游戏错误:构建播放器时出错:提取引用的dll失败

时间:2016-01-25 18:43:46

标签: c# unity3d unity5

以前创建了一个Unity引擎4.5的游戏现在更新为统一引擎5.游戏运行良好并且正在完善工作但是当我点击构建并运行Android时我得到以下错误:
作为初学者,我不知道如何处理此错误

NullReferenceException: Object reference not set to an instance of an object
    UnityEditor.PluginImporter+<GetImporters>c__AnonStoreyC.<>m__E (UnityEditor.PluginImporter imp) (at C:/buildslave/unity/build/artifacts/generated/common/editor/PluginImporterBindings.gen.cs:104)
    System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[UnityEditor.PluginImporter].MoveNext ()
    System.Collections.Generic.List`1[UnityEditor.PluginImporter].AddEnumerable (IEnumerable`1 enumerable) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Collections.Generic/List.cs:128)
    System.Collections.Generic.List`1[UnityEditor.PluginImporter]..ctor (IEnumerable`1 collection) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Collections.Generic/List.cs:65)
    System.Linq.Enumerable.ToArray[PluginImporter] (IEnumerable`1 source)
    UnityEditor.PluginImporter.GetImporters (System.String platformName) (at C:/buildslave/unity/build/artifacts/generated/common/editor/PluginImporterBindings.gen.cs:103)
    UnityEditor.PluginImporter.GetImporters (BuildTarget platform) (at C:/buildslave/unity/build/artifacts/generated/common/editor/PluginImporterBindings.gen.cs:111)
    UnityEditor.AndroidPluginImporterExtension.CheckFileCollisions (System.String buildTargetName)
    UnityEditorInternal.PluginsHelper.CheckFileCollisions (BuildTarget buildTarget) (at C:/buildslave/unity/build/Editor/Mono/Plugins/PluginsHelper.cs:25)
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

1 个答案:

答案 0 :(得分:3)

请检查您是否在正确的平台上(在构建设置中)。

如果没问题,请尝试关闭Unity,然后手动删除Library文件夹(在项目目录中),然后重新打开(重建)Unity项目。我注意到有时在这些类型的错误中对我有用。

我希望有所帮助!