栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 游戏开发 > Unity3D

Unity il2cpp.exe 已停止工作 CLR20r3

Unity3D 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Unity il2cpp.exe 已停止工作 CLR20r3

Unity 3D 在Build的时候最后卡住了,弹出如下提示,打开下边的详情会发现错误名称是CLR20r3的错误。


打开Unity最下边会发现如下错误日志:

Failed running C:Program FilesUnityEditorDatail2cpp/build/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="WindowsDesktop" --architecture="x64" --configuration="Release" --outputpath="C:WorkspaceUnitySnowTestTemp/StagingArea/DataNativeGameAssembly.dll" --cachedirectory="C:WorkspaceUnitySnowTestAssets..Library/il2cpp_cache" --map-file-parser="C:Program FilesUnityEditorDataToolsMapFileParserMapFileParser.exe" --assembly="C:WorkspaceUnitySnowTestTempStagingAreaDataManagedUnityEngine.dll" --generatedcppdir="C:WorkspaceUnitySnowTestTempStagingAreaDatail2cppOutput" 
 
stdout:
il2cpp.exe didn't catch exception: System.InvalidOperationException: C++ code builder is unable to build C++ code. In order to build C++ code for Windows Desktop, you must have one of these installed:
        Visual Studio 2010 with C++ compilers and Windows 7 SDK (it cannot build C++ code because it is not installed)
        Visual Studio 2010 installation is found by looking at "SOFTWAREMicrosoftVisualStudio10.0_ConfigInstallDir" in the registry
        Windows 7 SDK is found by looking at "SOFTWAREWow6432NodeMicrosoftMicrosoft SDKsWindowsv7.0AInstallationFolder" in the registry
 
        Visual Studio 2013 with C++ compilers and Windows 8.1 SDK (it cannot build C++ code because it is not installed)
        Visual Studio 2013 installation is found by looking at "SOFTWAREMicrosoftVisualStudio12.0_ConfigInstallDir" in the registry
        Windows 8.1 SDK is found by looking at "SOFTWAREWow6432NodeMicrosoftMicrosoft SDKsWindowsv8.1InstallationFolder" in the registry
 
        Visual Studio 2015 with C++ compilers and Windows 10 SDK (it cannot build C++ code because it is not installed)
        Visual Studio 2015 installation is found by looking at "SOFTWAREMicrosoftVisualStudio14.0_ConfigInstallDir" in the registry
        Windows 10 SDK is found by looking at "SOFTWAREWow6432NodeMicrosoftMicrosoft SDKsWindowsv10.0InstallationFolder" in the registry
 
        Visual Studio 2017 with C++ compilers and Windows 10 SDK (it cannot build C++ code because it is not installed)
        Visual Studio 2017 installation is found using Microsoft.VisualStudio.Setup.Configuration COM APIs
        Windows 10 SDK is found by looking at "SOFTWAREWow6432NodeMicrosoftMicrosoft SDKsWindowsv10.0InstallationFolder" in the registry
解决方式

尝试Visual Studio Community 2019,工作负载->使用C++的桌面开发
勾选后,点击安装。IL2Cpp编译成功并运行。

具体操作我是在另外一篇帖子里找的,地址如下:

https://blog.csdn.net/shulianghan/article/details/112645077

另外我还参考了另外一篇帖子:

https://blog.csdn.net/weixin_33778778/article/details/91595176

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/899689.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号