当前位置:   article > 正文

Unity导出exe报错,PC端_unity报错build completed with a result of 'failed' i

unity报错build completed with a result of 'failed' in 2 seconds (1935 ms)

程序连接mysql数据库

导出到PC端时报下列错误:

错误一:

ArgumentException: The Assembly System.Configuration is referenced by System.Data. But the dll is not allowed to be included or could not be found.

错误二:

UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors

错误三:

Build completed with a result of ‘Failed’

 

解决方法:在Player Settings里将Api Capability Level里的.Net 2.0 Sub 改成.Net 2.0就行了。

位置:Edit—〉Project Settings—〉Player,打开面板后找到Api Capability Level

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小蓝xlanll/article/detail/123534
推荐阅读
相关标签
  

闽ICP备14008679号