gpt4 book ai didi

c# - Unity构建和运行游戏错误: Error building Player: Extracting referenced dlls failed

转载 作者:太空狗 更新时间:2023-10-30 01:33:04 25 4
gpt4 key购买 nike

之前使用 Unity 引擎 4.5 创建了一个游戏,现在更新到 Unity 引擎 5。游戏运行良好并且正在完善但是当我点击 build and run for 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()

最佳答案

请检查您使用的平台是否正确(在build设置中)。

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

希望对您有所帮助!

关于c# - Unity构建和运行游戏错误: Error building Player: Extracting referenced dlls failed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34999948/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com