unity出现Error building Player because scripts had compiler errors的解决方法
2018-01-03 22:38
1501 查看
昨天保存后今天再打开项目build时发现编辑器报Error building Player because scripts had compiler errors的错误,但是修改一下脚本保存又能运行,但是只要build就会出现Error building Player because scripts had compiler errors的错误,久思不得其解。后来经过仔细排查,发现最可疑的就是昨天引用的UnityEditor命名空间,结果我把这个命名空间删掉以后再build真的就可以了!
后来百度才知道UnityEditor是unity开发辅助类,是无法编译进可运行的程序的。看来还是自己才疏学浅,对很多unity命名空间都不了解造成的,做个笔记,以防忘记。
后来百度才知道UnityEditor是unity开发辅助类,是无法编译进可运行的程序的。看来还是自己才疏学浅,对很多unity命名空间都不了解造成的,做个笔记,以防忘记。
相关文章推荐
- 出现An internal error occurred during: "Building workspace".的解决方法
- 【已解决】unity4.2.0f4 导出Android工程报错:Error building Player: ArgumentException: Illegal characters in path. [unity导出android工程 报错,路径含有非法字符]
- Eclipse结合Maven出现[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin错误的解决方法
- Unity-APk 错误:Error building Player: Couldn't build player because of unsupported data on target plat
- Unity出现 error building player exception android (invocation failed)
- 关于VC++6.0加载控件出现Unable to register this add-in because its DllRegisterServer returns an error 的解决方法
- Unity出现 error building player exception android (invocation failed)
- 解决出现 ./configure and got “configure: error: C++ compiler cannot create executables的方法
- “MediaPlayer error (1, -2147483648)”的解决方法
- MyEclipse报错 Building workspace has encountered a problem Errors occurred during the build 的2种解决方法
- ubuntu CUPS-PDF虚拟打印机 打印出现错误的解决方法 Stopping job because the sheduler could not execute the backend
- 打包 出现Error 1001.在初始化安装时发生异常 错误解决方法
- error: Exited sync due to gc errors 解决方法
- 安装postgreSQL出现configure: error: zlib library not found解决方法
- error:The calling thread cannot access this object because a different thread owns it解决方法
- npm安装bower出现ERROR的解决方法
- eclipse启动出现“An Error has Occurred. See the log file”解决方法
- eclipse启动出现“An Error has Occurred. See the log file”解决方法
- 关于AndroidStudio导入工程时出现building gradle info的解决方法
- iis出现 Server Application Error 错误解决方法[转]