如下图所示,第一次打开项目的时候报错,

内容大致为:
FileNotFoundException: Could not find file “D:\GithubProjects\Navigation\VoxelWorldandAstarRoadGenerator\Voxel-World-and-A-star-Road-Generator\Voxel World and A-star Road Generator\Library\PackageCache\com.unity.analytics@3.2.2\Tests\Editor\Unity.Analytics.StandardEvents\Unity.Analytics.StandardEvents.EditorTests.asmdef”.
System.IO.FileStream…ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/FileStream.cs:305)
System.IO.FileStream…ctor (System.String path, FileMode mode, FileAccess access, FileShare share)
(wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
System.IO.File.OpenRead (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/File.cs:363)
System.IO.StreamReader…ctor (System.String path, System.Text.Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/StreamReader.cs:167)

神奇的是,可以按Clear清除掉Console里的内容,就不会报错了,然而点击Play后会有新的报错,但是有没有提示具体问题出在哪里,如下图所示:


报错内容如下:
All compiler errors have to be fixed before you can enter playmode!
UnityEditor.SceneView:ShowCompileErrorNotification()

如果重新打开Unity,仍然会发现第一个图所示的报错,这就很神奇。

解决办法
根据错误提示FileNotFoundException: Could not find file,应该是文件路径太长了,导致Unity找不到,我的路径有这么长

D:\GithubProjects\Navigation\VoxelWorldandAstarRoadGenerator\Voxel-World-and-A-star-Road-Generator\Voxel World and A-star Road Generator

于是直接把项目移到D盘,发现可以正常运行了

Unity打开新项目报错相关推荐

  1. 转载:Android Studio 3.1.2 新项目报错 AAPT2 error: check logs for details (Gradle 3.1.2)

    转载自 https://blog.csdn.net/u011618035/article/details/80574645 原本好好的项目,突然有一天打开就开始报错AAPT2 error: check ...

  2. Unity打包Android项目报错

    一.背景 Unity项目是具备以下能力的 1.可以直接运行在Android手机上的 2.可以build出一个apk文件再安装到手机上运行 3.可以打包成一个Android项目,使用Android St ...

  3. Xcode10 打开旧项目报错Multiple commands produce定位到Info.plist解决方案

    用新版本的 xcode打开老的项目,竟然报错. 报错内容如下: -------------------------------------------------------------- Showi ...

  4. intellij gradle java_Java 使用 IntelliJ IDEA Gradle创建新项目报错问题解决方法

    1、JDK10的解决方法 对于JDK 10,您将需要Gradle 4.7+,默认情况下IntelliJ IDEA(当前版本IntelliJ IDEA 2018.1.4)不使用. 要解决此问题,请为您的 ...

  5. 本地服务器打开laravel项目报错的解决方法

    部分初学者安装完laravel项目,在本地服务器想打开项目首页时会发现这样的问题: Warning:require(C:\phpStudy\PHPTutorial\WWW\test\BSbacksta ...

  6. 导入新项目报错 Hibernate提示:No generator named ID_GENERATOR is defined in the persistence unit

    选择Window  Preferences 设置Generator is not defined in the persistence unit 为 Warning,点击OK就行了.

  7. [unity] build项目报错:Currently selected scripting backend (.NET)is not installed

    [Unity] Currently selected scripting backend .NET is notinstalled Unity build项目报错,没有安装 .NET 问题概况 Uni ...

  8. [Unity][ILRuntime][C#]热更新运行官方示例U3D项目报错

    下载ILRuntimeUnity3D项目,项目版本Unity 2020 解压后,用unity打开 unity 2019.4.19f1c1 报错 Library\PackageCache\com.uni ...

  9. 用户 'IIS APPPOOL\**' 登录失败的解决方案(项目部署到本地IIS上打开网页出现报错)...

    为开发方便-将项目部署到本地IIS上打开网页出现报错 1.打开IIS管理 2.点击应用池 3.找到你部署的网站名,右键"高级设置"-->"进程模型"--& ...

最新文章

  1. BW:Start Routine
  2. 文本 To 音频
  3. 【大神】软件建模仿真空气冷凝集水器,末日饮水荒野求生水资源解决方案
  4. java小程序扑克牌_用Java来写一个模拟斗地主发牌的小程序
  5. 面到阿里月薪 27k 数据岗,很难?
  6. 静态时序分析——Data to data check
  7. c语言指针++_C ++此指针| 查找输出程序| 套装3
  8. Springboot是什么?Springboot详解!入门介绍
  9. python程序设计与应用第4章实验
  10. HBase之MemStore flush流程
  11. noip2002提高组题解
  12. 广域网协议之PPP,HDLC
  13. websocket 发送多条消息如何判断全部接收_Websocket的分布式集群开发及部署
  14. Codeforces Round #574 (Div. 2)
  15. 一卡通管理系统服务器,一卡通管理系统
  16. linux下哪个分区工具好,这些Linux分区工具是免费的且好用
  17. Skype for business之Skype会议直播
  18. 使用Pr给视频添加字幕
  19. jeecms 取附件
  20. excel数据处理_有没有可以完全替代并超越excel的表格和数据处理软件?

热门文章

  1. Java 递归查询部门树形结构数据
  2. 牛客练习赛$18E\ pocky$游戏 状压$dp$
  3. 老男孩-筷子兄弟(歌词)
  4. python format是什么
  5. 桌面计算机和笔记本被称为,网络上常见的PC是什么意思?深度解读计算机发展史...
  6. 计算机网络实验1 网线、配线架与机柜
  7. Failed to evaluate mask initialization commands
  8. 蝶衣王究竟怎么样?来和大家聊一聊
  9. 乐趣国学—品读《弟子规》中的“余力学文”之道
  10. 工业智能网关BL110应用之63:如何实现智能楼宇控制BACnet 接入金鸽Modbus云平台