ERROR: Windows SDK必须安装才能构建此目标

huangapple go评论73阅读模式
英文:

Unreal Engine5: ERROR: Windows SDK must be installed in order to build this target

问题

我正在尝试在虚幻引擎中创建一个简单的C++项目。我已经安装了Visual Studio 2022。我还安装了用于Windows 11的Windows SDK。我还安装了.NET 3.1版本。但是,尽管这一切,当我想要打开某个项目并选择C++而不是蓝图时,虚幻引擎会给我显示以下错误:

尝试生成项目文件时出现错误。

运行D:/Unreal engine/UE_5.0/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe  -projectfiles -project="C:/Users/alikj/OneDrive/Desktop/MyProject/MyProject.uproject" -game -rocket -progress
日志文件:C:\Users\alikj\AppData\Local\UnrealBuildTool\Log_GPF.txt

由于无效的SDK设置,某些平台被跳过:Win64,Android。
请查看日志文件以获取详细信息。

发现项目的模块、目标和源代码...
错误:必须安装Windows SDK才能构建此目标。

我不知道应该做什么,我在YouTube和所有其他Google上的站点上搜索过。如果有人知道答案,请帮助我,我想安全地以C++方式打开项目。

英文:

I am trying to make a simple c++ project in unreal engine. I have installed the visual studio 2022. I also installed the window sdk for window 11. I also install the dotnet 3.1 version.
But after all this when I want to open some project and select C++ instead of blueprints unreal engine give me this error.

An error occurred while trying to generate project files.

Running D:/Unreal engine/UE_5.0/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe  -projectfiles -project="C:/Users/alikj/OneDrive/Desktop/MyProject/MyProject.uproject" -game -rocket -progress
Log file: C:\Users\alikj\AppData\Local\UnrealBuildTool\Log_GPF.txt

Some Platforms were skipped due to invalid SDK setup: Win64, Android.
See the log file for detailed information

Discovering modules, targets and source code for project...
ERROR: Windows SDK must be installed in order to build this target.

I have no idea what should I do, I search Youtube and all the other sites on google.
If some body has answer to that please help me,

I want to safely open the project with C++

答案1

得分: 1

你可以尝试这个,对我有效...
进入项目文件夹,删除中间文件、二进制文件和构建文件夹。
然后尝试运行 .uproject 文件。
希望能够成功!

英文:

You can try this it worked for me...
Go to the project folder and remove the intermediate, binaries and build folders.
Then try running the .uproject file.
I hope that works !

huangapple
  • 本文由 发表于 2023年3月12日 18:49:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/75712599.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定