ERROR: Visual Studio 2017 must be installed in order to build this target.

Hi,
I try to package a plugin but I get the “ERROR: Visual Studio 2017 must be installed in order to build this target.” even if I have visual studio 2019 installed.
I don’t understand why I keep getting this error.

this is the log



[2020.12.09-13.16.46:628][465]UATHelper: Package Plugin Task (Windows): Running AutomationTool...
[2020.12.09-13.16.48:546][488]UATHelper: Package Plugin Task (Windows): Parsing command line: BuildPlugin -Plugin="F:/Unreal Projects/plugin_Creator/Plugins/LaserDistanceMeasurement/LaserDistanceMeasurement.uplugin" -Package="F:/Unreal Projects/plugin_Creator/packaged/LDMT/LaserDistanceMeasurement" -CreateSubFolder
[2020.12.09-13.16.50:993][514]LogSlate: Took 0.024045 seconds to synchronously load lazily loaded font '../../../Engine/Content/Slate/Fonts/DroidSansMono.ttf' (77K)
[2020.12.09-13.16.52:871][534]UATHelper: Package Plugin Task (Windows): Copying 82 file(s) using max 64 thread(s)
[2020.12.09-13.17.01:243][663]UATHelper: Package Plugin Task (Windows): Reading plugin from F:\Unreal Projects\plugin_Creator\packaged\LDMT\LaserDistanceMeasurement\HostProject\Plugins\LaserDistanceMeasurement\LaserDistanceMeasurement.uplugin...
[2020.12.09-13.17.01:848][669]UATHelper: Package Plugin Task (Windows): Building plugin for host platforms: Win64
[2020.12.09-13.17.01:948][670]UATHelper: Package Plugin Task (Windows): Running: C:\Program Files\Epic Games\UE_4.25\Engine\Binaries\DotNET\UnrealBuildTool.exe UE4Editor Win64 Development -Project="F:\Unreal Projects\plugin_Creator\packaged\LDMT\LaserDistanceMeasurement\HostProject\HostProject.uproject" -plugin="F:\Unreal Projects\plugin_Creator\packaged\LDMT\LaserDistanceMeasurement\HostProject\Plugins\LaserDistanceMeasurement\LaserDistanceMeasurement.uplugin" -iwyu -noubtmakefiles -manifest="F:\Unreal Projects\plugin_Creator\packaged\LDMT\LaserDistanceMeasurement\HostProject\Saved\Manifest-UE4Editor-Win64-Development.xml" -nohotreload -log="C:\Users\Bilal\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.25\UBT-UE4Editor-Win64-Development.txt"
[2020.12.09-13.17.15:698][812]UATHelper: Package Plugin Task (Windows): Using ULIS3 DLL: C:\Program Files\Epic Games\UE_4.25\Engine\Plugins\Marketplace\Iliad\Binaries\Win64\ULIS3.dll
[2020.12.09-13.19.12:320][879]UATHelper: Package Plugin Task (Windows): Parsing headers for UE4Editor
[2020.12.09-13.19.12:320][879]UATHelper: Package Plugin Task (Windows): Running UnrealHeaderTool "F:\Unreal Projects\plugin_Creator\packaged\LDMT\LaserDistanceMeasurement\HostProject\HostProject.uproject" "F:\Unreal Projects\plugin_Creator\packaged\LDMT\LaserDistanceMeasurement\HostProject\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -abslog="C:\Users\Bilal\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.25\UHT-UE4Editor-Win64-Development.txt" -installed
[2020.12.09-13.19.26:747][922]UATHelper: Package Plugin Task (Windows): Reflection code generated for UE4Editor in 14,3404315 seconds
[2020.12.09-13.19.28:092][926]UATHelper: Package Plugin Task (Windows): Writing manifest to F:\Unreal Projects\plugin_Creator\packaged\LDMT\LaserDistanceMeasurement\HostProject\Saved\Manifest-UE4Editor-Win64-Development.xml
[2020.12.09-13.19.28:427][927]UATHelper: Package Plugin Task (Windows): Building UE4Editor...
[2020.12.09-13.19.28:427][927]UATHelper: Package Plugin Task (Windows): Using Visual Studio 2019 14.26.28806 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801) and Windows 10.0.18362.0 SDK (C:\Program Files (x86)\Windows Kits\10).
[2020.12.09-13.19.28:427][927]UATHelper: Package Plugin Task (Windows): Building 7 actions with 4 processes...
[2020.12.09-13.19.29:093][929]UATHelper: Package Plugin Task (Windows): [1/7] Default.rc2
[2020.12.09-13.20.32:362][117]UATHelper: Package Plugin Task (Windows): [2/7] SharedPCH.Engine.ShadowErrors.cpp
[2020.12.09-13.27.35:959][294]UATHelper: Package Plugin Task (Windows): [3/7] Module.LaserDistanceMeasurement.gen.cpp
[2020.12.09-13.27.36:406][298]UATHelper: Package Plugin Task (Windows): [4/7] Module.LaserDistanceMeasurement.cpp
[2020.12.09-13.27.37:398][308]UATHelper: Package Plugin Task (Windows): [5/7] UE4Editor-LaserDistanceMeasurement.lib
[2020.12.09-13.27.37:401][308]UATHelper: Package Plugin Task (Windows): Cr?ation de la biblioth?que F:\Unreal Projects\plugin_Creator\packaged\LDMT\LaserDistanceMeasurement\HostProject\Plugins\LaserDistanceMeasurement\Intermediate\Build\Win64\UE4Editor\Development\LaserDistanceMeasurement\UE4Editor-LaserDistanceMeasurement.lib et de l'objet F:\Unreal Projects\plugin_Creator\packaged\LDMT\LaserDistanceMeasurement\HostProject\Plugins\LaserDistanceMeasurement\Intermediate\Build\Win64\UE4Editor\Development\LaserDistanceMeasurement\UE4Editor-LaserDistanceMeasurement.exp
[2020.12.09-13.27.40:452][339]UATHelper: Package Plugin Task (Windows): [6/7] UE4Editor-LaserDistanceMeasurement.dll
[2020.12.09-13.27.40:459][339]UATHelper: Package Plugin Task (Windows): Cr?ation de la biblioth?que F:\Unreal Projects\plugin_Creator\packaged\LDMT\LaserDistanceMeasurement\HostProject\Plugins\LaserDistanceMeasurement\Intermediate\Build\Win64\UE4Editor\Development\LaserDistanceMeasurement\UE4Editor-LaserDistanceMeasurement.suppressed.lib et de l'objet F:\Unreal Projects\plugin_Creator\packaged\LDMT\LaserDistanceMeasurement\HostProject\Plugins\LaserDistanceMeasurement\Intermediate\Build\Win64\UE4Editor\Development\LaserDistanceMeasurement\UE4Editor-LaserDistanceMeasurement.suppressed.exp
[2020.12.09-13.27.48:887][426]UATHelper: Package Plugin Task (Windows): [7/7] UE4Editor.target
[2020.12.09-13.27.48:903][426]UATHelper: Package Plugin Task (Windows): Total time in Parallel executor: 500,55 seconds
[2020.12.09-13.27.49:333][431]UATHelper: Package Plugin Task (Windows): Total execution time: 646,27 seconds
[2020.12.09-13.27.49:644][434]UATHelper: Package Plugin Task (Windows): Took 647,6912957s to run UnrealBuildTool.exe, ExitCode=0
[2020.12.09-13.27.49:658][434]UATHelper: Package Plugin Task (Windows): Building plugin for target platforms: Android, Win64, Win32
[2020.12.09-13.27.49:670][434]UATHelper: Package Plugin Task (Windows): Running: C:\Program Files\Epic Games\UE_4.25\Engine\Binaries\DotNET\UnrealBuildTool.exe UE4Game Android Development -Project="F:\Unreal Projects\plugin_Creator\packaged\LDMT\LaserDistanceMeasurement\HostProject\HostProject.uproject" -plugin="F:\Unreal Projects\plugin_Creator\packaged\LDMT\LaserDistanceMeasurement\HostProject\Plugins\LaserDistanceMeasurement\LaserDistanceMeasurement.uplugin" -iwyu -noubtmakefiles -manifest="F:\Unreal Projects\plugin_Creator\packaged\LDMT\LaserDistanceMeasurement\HostProject\Saved\Manifest-UE4Game-Android-Development.xml" -nohotreload -architectures=armv7+arm64 -2017 -log="C:\Users\Bilal\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.25\UBT-UE4Game-Android-Development.txt"
[2020.12.09-13.27.56:393][502]UATHelper: Package Plugin Task (Windows): PLATFORM_ANDROID_NDK_VERSION = 210400
[2020.12.09-13.27.56:394][502]UATHelper: Package Plugin Task (Windows): NDK toolchain: r21d, NDK version: 24, GccVersion: 4.9, ClangVersion: 9.0.8
[2020.12.09-13.27.58:345][521]UATHelper: Package Plugin Task (Windows): Parsing headers for UE4Game
[2020.12.09-13.27.58:539][523]UATHelper: Package Plugin Task (Windows): Running UnrealHeaderTool "F:\Unreal Projects\plugin_Creator\packaged\LDMT\LaserDistanceMeasurement\HostProject\HostProject.uproject" "F:\Unreal Projects\plugin_Creator\packaged\LDMT\LaserDistanceMeasurement\HostProject\Intermediate\Build\Android\UE4Game\Development\UE4Game.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -abslog="C:\Users\Bilal\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.25\UHT-UE4Game-Android-Development.txt" -installed
[2020.12.09-13.29.06:809][228]UATHelper: Package Plugin Task (Windows): Reflection code generated for UE4Game in 68,27175 seconds
[2020.12.09-13.29.07:527][235]UATHelper: Package Plugin Task (Windows): Compiling Native 32-bit code with NDK API 'android-24'
[2020.12.09-13.29.07:527][235]UATHelper: Package Plugin Task (Windows): Compiling Native 64-bit code with NDK API 'android-24'
[2020.12.09-13.29.13:887][301]UATHelper: Package Plugin Task (Windows): Writing manifest to F:\Unreal Projects\plugin_Creator\packaged\LDMT\LaserDistanceMeasurement\HostProject\Saved\Manifest-UE4Game-Android-Development.xml
[2020.12.09-13.29.14:183][304]UATHelper: Package Plugin Task (Windows): Building UE4Game...
[2020.12.09-13.29.14:219][304]UATHelper: Package Plugin Task (Windows): Building 4 actions with 4 processes...
[2020.12.09-13.31.11:886][454]UATHelper: Package Plugin Task (Windows): [1/4] Module.LaserDistanceMeasurement.gen.cpp [arm64]
[2020.12.09-13.31.11:966][455]UATHelper: Package Plugin Task (Windows): [2/4] Module.LaserDistanceMeasurement.gen.cpp [armv7]
[2020.12.09-13.31.16:560][500]UATHelper: Package Plugin Task (Windows): [3/4] Module.LaserDistanceMeasurement.cpp [armv7]
[2020.12.09-13.31.17:130][506]UATHelper: Package Plugin Task (Windows): [4/4] Module.LaserDistanceMeasurement.cpp [arm64]
[2020.12.09-13.31.17:132][506]UATHelper: Package Plugin Task (Windows): Total time in Parallel executor: 122,93 seconds
[2020.12.09-13.31.17:323][508]UATHelper: Package Plugin Task (Windows): Total execution time: 207,44 seconds
[2020.12.09-13.31.17:557][510]UATHelper: Package Plugin Task (Windows): Took 207,8879058s to run UnrealBuildTool.exe, ExitCode=0
[2020.12.09-13.31.17:560][510]UATHelper: Package Plugin Task (Windows): Running: C:\Program Files\Epic Games\UE_4.25\Engine\Binaries\DotNET\UnrealBuildTool.exe UE4Game Android Shipping -Project="F:\Unreal Projects\plugin_Creator\packaged\LDMT\LaserDistanceMeasurement\HostProject\HostProject.uproject" -plugin="F:\Unreal Projects\plugin_Creator\packaged\LDMT\LaserDistanceMeasurement\HostProject\Plugins\LaserDistanceMeasurement\LaserDistanceMeasurement.uplugin" -iwyu -noubtmakefiles -manifest="F:\Unreal Projects\plugin_Creator\packaged\LDMT\LaserDistanceMeasurement\HostProject\Saved\Manifest-UE4Game-Android-Shipping.xml" -nohotreload -architectures=armv7+arm64 -2017 -log="C:\Users\Bilal\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.25\UBT-UE4Game-Android-Shipping.txt"
[2020.12.09-13.31.24:809][582]UATHelper: Package Plugin Task (Windows): PLATFORM_ANDROID_NDK_VERSION = 210400
[2020.12.09-13.31.24:809][582]UATHelper: Package Plugin Task (Windows): NDK toolchain: r21d, NDK version: 24, GccVersion: 4.9, ClangVersion: 9.0.8
[2020.12.09-13.31.25:026][584]UATHelper: Package Plugin Task (Windows): Parsing headers for UE4Game
[2020.12.09-13.31.25:197][586]UATHelper: Package Plugin Task (Windows): Running UnrealHeaderTool "F:\Unreal Projects\plugin_Creator\packaged\LDMT\LaserDistanceMeasurement\HostProject\HostProject.uproject" "F:\Unreal Projects\plugin_Creator\packaged\LDMT\LaserDistanceMeasurement\HostProject\Intermediate\Build\Android\UE4Game\Shipping\UE4Game.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -abslog="C:\Users\Bilal\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.25\UHT-UE4Game-Android-Shipping.txt" -installed
[2020.12.09-13.31.41:262][759]UATHelper: Package Plugin Task (Windows): Reflection code generated for UE4Game in 16,0647767 seconds
[2020.12.09-13.31.41:801][765]UATHelper: Package Plugin Task (Windows): Compiling Native 32-bit code with NDK API 'android-24'
[2020.12.09-13.31.41:802][765]UATHelper: Package Plugin Task (Windows): Compiling Native 64-bit code with NDK API 'android-24'
[2020.12.09-13.31.45:323][807]UATHelper: Package Plugin Task (Windows): Writing manifest to F:\Unreal Projects\plugin_Creator\packaged\LDMT\LaserDistanceMeasurement\HostProject\Saved\Manifest-UE4Game-Android-Shipping.xml
[2020.12.09-13.31.45:679][811]UATHelper: Package Plugin Task (Windows): Building UE4Game...
[2020.12.09-13.31.45:773][812]UATHelper: Package Plugin Task (Windows): Building 4 actions with 4 processes...
[2020.12.09-13.32.51:888][574]UATHelper: Package Plugin Task (Windows): [1/4] Module.LaserDistanceMeasurement.gen.cpp [armv7]
[2020.12.09-13.32.54:292][602]UATHelper: Package Plugin Task (Windows): [2/4] Module.LaserDistanceMeasurement.cpp [armv7]
[2020.12.09-13.32.54:739][607]UATHelper: Package Plugin Task (Windows): [3/4] Module.LaserDistanceMeasurement.gen.cpp [arm64]
[2020.12.09-13.32.56:655][630]UATHelper: Package Plugin Task (Windows): [4/4] Module.LaserDistanceMeasurement.cpp [arm64]
[2020.12.09-13.32.56:655][630]UATHelper: Package Plugin Task (Windows): Total time in Parallel executor: 70,91 seconds
[2020.12.09-13.32.56:665][630]UATHelper: Package Plugin Task (Windows): Total execution time: 98,74 seconds
[2020.12.09-13.32.56:817][632]UATHelper: Package Plugin Task (Windows): Took 99,2565837s to run UnrealBuildTool.exe, ExitCode=0
[2020.12.09-13.32.56:820][632]UATHelper: Package Plugin Task (Windows): Running: C:\Program Files\Epic Games\UE_4.25\Engine\Binaries\DotNET\UnrealBuildTool.exe UE4Game Win64 Development -Project="F:\Unreal Projects\plugin_Creator\packaged\LDMT\LaserDistanceMeasurement\HostProject\HostProject.uproject" -plugin="F:\Unreal Projects\plugin_Creator\packaged\LDMT\LaserDistanceMeasurement\HostProject\Plugins\LaserDistanceMeasurement\LaserDistanceMeasurement.uplugin" -iwyu -noubtmakefiles -manifest="F:\Unreal Projects\plugin_Creator\packaged\LDMT\LaserDistanceMeasurement\HostProject\Saved\Manifest-UE4Game-Win64-Development.xml" -nohotreload -2017 -log="C:\Users\Bilal\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.25\UBT-UE4Game-Win64-Development.txt"
[2020.12.09-13.33.00:167][671]UATHelper: Package Plugin Task (Windows): ERROR: Visual Studio 2017 must be installed in order to build this target.
[2020.12.09-13.33.00:350][673]UATHelper: Package Plugin Task (Windows): Took 3,5299458s to run UnrealBuildTool.exe, ExitCode=6
[2020.12.09-13.33.00:361][673]UATHelper: Package Plugin Task (Windows): UnrealBuildTool failed. See log for more details. (C:\Users\Bilal\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.25\UBT-UE4Game-Win64-Development.txt)
[2020.12.09-13.33.00:504][675]UATHelper: Package Plugin Task (Windows): AutomationTool exiting with ExitCode=6 (6)
[2020.12.09-13.33.00:736][678]UATHelper: Package Plugin Task (Windows): BUILD FAILED


3 Likes

I am still stuck.
I can package the project for win64 but I can’t package the plugin.

I tried different things nothing worked :
1- create a new empty project with an empty plugin.
2- specify visual studio 2019 in editor preferences -> source code.
3- add WindowsPlatform.Compiler = WindowsCompiler.VisualStudio2019; to plugin_Creator.Target.cs
4- install msvc build tools for arm, arm64, and x86/ x64.
5- setup android studio and download ndk r21
6- set ndk and android paths in PATH.
7- Modify buildConfiguration.xml :


<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
<WindowsPlatform>
<CompilerVersion>14.26.28806</CompilerVersion>
<Compiler>VisualStudio2019</Compiler>
</WindowsPlatform>
<VCProjectFileGenerator>
<Version>VisualStudio2019</Version>
</VCProjectFileGenerator>
</Configuration>


but I still get this error. Here is the Log.
Does anyone have an idea on how to solve this error?
Thank you.



UATHelper: Package Plugin Task (Windows): Running AutomationTool...
UATHelper: Package Plugin Task (Windows): Parsing command line: BuildPlugin -Plugin="F:/Unreal Projects/plugin_create/Plugins/DMT/DMT.uplugin" -Package="F:/Unreal Projects/plugins/DMT" -CreateSubFolder
UATHelper: Package Plugin Task (Windows): Copying 21 file(s) using max 64 thread(s)
UATHelper: Package Plugin Task (Windows): Reading plugin from F:\Unreal Projects\plugins\DMT\HostProject\Plugins\DMT\DMT.uplugin...
UATHelper: Package Plugin Task (Windows): Building plugin for host platforms: Win64
UATHelper: Package Plugin Task (Windows): Running: C:\Program Files\Epic Games\UE_4.25\Engine\Binaries\DotNET\UnrealBuildTool.exe UE4Editor Win64 Development -Project="F:\Unreal Projects\plugins\DMT\HostProject\HostProject.uproject" -plugin="F:\Unreal Projects\plugins\DMT\HostProject\Plugins\DMT\DMT.uplugin" -iwyu -noubtmakefiles -manifest="F:\Unreal Project
s\plugins\DMT\HostProject\Saved\Manifest-UE4Editor-Win64-Development.xml" -nohotreload -log="C:\Users\Bilal\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.25\UBT-UE4Editor-Win64-Development.txt"
UATHelper: Package Plugin Task (Windows): Using ULIS3 DLL: C:\Program Files\Epic Games\UE_4.25\Engine\Plugins\Marketplace\Iliad\Binaries\Win64\ULIS3.dll
UATHelper: Package Plugin Task (Windows): Parsing headers for UE4Editor
UATHelper: Package Plugin Task (Windows): Running UnrealHeaderTool "F:\Unreal Projects\plugins\DMT\HostProject\HostProject.uproject" "F:\Unreal Projects\plugins\DMT\HostProject\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -abslog="C:\User
s\Bilal\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.25\UHT-UE4Editor-Win64-Development.txt" -installed
UATHelper: Package Plugin Task (Windows): Reflection code generated for UE4Editor in 18,0659113 seconds
UATHelper: Package Plugin Task (Windows): Writing manifest to F:\Unreal Projects\plugins\DMT\HostProject\Saved\Manifest-UE4Editor-Win64-Development.xml
UATHelper: Package Plugin Task (Windows): Building UE4Editor...
UATHelper: Package Plugin Task (Windows): Using Visual Studio 2019 14.26.28806 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801) and Windows 10.0.18362.0 SDK (C:\Program Files (x86)\Windows Kits\10).
UATHelper: Package Plugin Task (Windows): Building 6 actions with 4 processes...
UATHelper: Package Plugin Task (Windows): [1/6] Default.rc2
UATHelper: Package Plugin Task (Windows): [2/6] SharedPCH.Engine.ShadowErrors.cpp
UATHelper: Package Plugin Task (Windows): [3/6] DMT.cpp
UATHelper: Package Plugin Task (Windows): [4/6] UE4Editor-DMT.lib
UATHelper: Package Plugin Task (Windows): Cr?ation de la biblioth?que F:\Unreal Projects\plugins\DMT\HostProject\Plugins\DMT\Intermediate\Build\Win64\UE4Editor\Development\DMT\UE4Editor-DMT.lib et de l'objet F:\Unreal Projects\plugins\DMT\HostProject\Plugins\DMT\Intermediate\Build\Win64\UE4Editor\Development\DMT\UE4Editor-DMT.exp
UATHelper: Package Plugin Task (Windows): [5/6] UE4Editor-DMT.dll
UATHelper: Package Plugin Task (Windows): Cr?ation de la biblioth?que F:\Unreal Projects\plugins\DMT\HostProject\Plugins\DMT\Intermediate\Build\Win64\UE4Editor\Development\DMT\UE4Editor-DMT.suppressed.lib et de l'objet F:\Unreal Projects\plugins\DMT\HostProject\Plugins\DMT\Intermediate\Build\Win64\UE4Editor\Development\DMT\UE4Editor-DMT.suppressed.exp
UATHelper: Package Plugin Task (Windows): [6/6] UE4Editor.target
UATHelper: Package Plugin Task (Windows): Total time in Parallel executor: 215,98 seconds
UATHelper: Package Plugin Task (Windows): Total execution time: 316,29 seconds
UATHelper: Package Plugin Task (Windows): Took 316,8188103s to run UnrealBuildTool.exe, ExitCode=0
UATHelper: Package Plugin Task (Windows): Building plugin for target platforms: Android, Win64, Win32
UATHelper: Package Plugin Task (Windows): Running: C:\Program Files\Epic Games\UE_4.25\Engine\Binaries\DotNET\UnrealBuildTool.exe UE4Game Android Development -Project="F:\Unreal Projects\plugins\DMT\HostProject\HostProject.uproject" -plugin="F:\Unreal Projects\plugins\DMT\HostProject\Plugins\DMT\DMT.uplugin" -iwyu -noubtmakefiles -manifest="F:\Unreal Project
s\plugins\DMT\HostProject\Saved\Manifest-UE4Game-Android-Development.xml" -nohotreload -architectures=armv7+arm64 -2017 -log="C:\Users\Bilal\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.25\UBT-UE4Game-Android-Development.txt"
UATHelper: Package Plugin Task (Windows): PLATFORM_ANDROID_NDK_VERSION = 210400
UATHelper: Package Plugin Task (Windows): NDK toolchain: r21d, NDK version: 24, GccVersion: 4.9, ClangVersion: 9.0.8
UATHelper: Package Plugin Task (Windows): Parsing headers for UE4Game
UATHelper: Package Plugin Task (Windows): Running UnrealHeaderTool "F:\Unreal Projects\plugins\DMT\HostProject\HostProject.uproject" "F:\Unreal Projects\plugins\DMT\HostProject\Intermediate\Build\Android\UE4Game\Development\UE4Game.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -abslog="C:\Users\
Bilal\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.25\UHT-UE4Game-Android-Development.txt" -installed
UATHelper: Package Plugin Task (Windows): Reflection code generated for UE4Game in 26,4919264 seconds
UATHelper: Package Plugin Task (Windows): Compiling Native 32-bit code with NDK API 'android-24'
UATHelper: Package Plugin Task (Windows): Compiling Native 64-bit code with NDK API 'android-24'
UATHelper: Package Plugin Task (Windows): Writing manifest to F:\Unreal Projects\plugins\DMT\HostProject\Saved\Manifest-UE4Game-Android-Development.xml
UATHelper: Package Plugin Task (Windows): Building UE4Game...
UATHelper: Package Plugin Task (Windows): Building 2 actions with 4 processes...
UATHelper: Package Plugin Task (Windows): [1/2] DMT.cpp [armv7]
UATHelper: Package Plugin Task (Windows): [2/2] DMT.cpp [arm64]
UATHelper: Package Plugin Task (Windows): Total time in Parallel executor: 5,11 seconds
UATHelper: Package Plugin Task (Windows): Total execution time: 38,58 seconds
UATHelper: Package Plugin Task (Windows): Took 38,7384108s to run UnrealBuildTool.exe, ExitCode=0
UATHelper: Package Plugin Task (Windows): Running: C:\Program Files\Epic Games\UE_4.25\Engine\Binaries\DotNET\UnrealBuildTool.exe UE4Game Android Shipping -Project="F:\Unreal Projects\plugins\DMT\HostProject\HostProject.uproject" -plugin="F:\Unreal Projects\plugins\DMT\HostProject\Plugins\DMT\DMT.uplugin" -iwyu -noubtmakefiles -manifest="F:\Unreal Projects\p
lugins\DMT\HostProject\Saved\Manifest-UE4Game-Android-Shipping.xml" -nohotreload -architectures=armv7+arm64 -2017 -log="C:\Users\Bilal\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.25\UBT-UE4Game-Android-Shipping.txt"
UATHelper: Package Plugin Task (Windows): PLATFORM_ANDROID_NDK_VERSION = 210400
UATHelper: Package Plugin Task (Windows): NDK toolchain: r21d, NDK version: 24, GccVersion: 4.9, ClangVersion: 9.0.8
UATHelper: Package Plugin Task (Windows): Parsing headers for UE4Game
UATHelper: Package Plugin Task (Windows): Running UnrealHeaderTool "F:\Unreal Projects\plugins\DMT\HostProject\HostProject.uproject" "F:\Unreal Projects\plugins\DMT\HostProject\Intermediate\Build\Android\UE4Game\Shipping\UE4Game.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -abslog="C:\Users\Bil
al\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.25\UHT-UE4Game-Android-Shipping.txt" -installed
UATHelper: Package Plugin Task (Windows): Reflection code generated for UE4Game in 7,332694 seconds
UATHelper: Package Plugin Task (Windows): Compiling Native 32-bit code with NDK API 'android-24'
UATHelper: Package Plugin Task (Windows): Compiling Native 64-bit code with NDK API 'android-24'
UATHelper: Package Plugin Task (Windows): Writing manifest to F:\Unreal Projects\plugins\DMT\HostProject\Saved\Manifest-UE4Game-Android-Shipping.xml
UATHelper: Package Plugin Task (Windows): Building UE4Game...
UATHelper: Package Plugin Task (Windows): Building 2 actions with 4 processes...
UATHelper: Package Plugin Task (Windows): [1/2] DMT.cpp [armv7]
UATHelper: Package Plugin Task (Windows): [2/2] DMT.cpp [arm64]
UATHelper: Package Plugin Task (Windows): Total time in Parallel executor: 2,88 seconds
UATHelper: Package Plugin Task (Windows): Total execution time: 13,80 seconds
UATHelper: Package Plugin Task (Windows): Took 13,9848108s to run UnrealBuildTool.exe, ExitCode=0
UATHelper: Package Plugin Task (Windows): Running: C:\Program Files\Epic Games\UE_4.25\Engine\Binaries\DotNET\UnrealBuildTool.exe UE4Game Win64 Development -Project="F:\Unreal Projects\plugins\DMT\HostProject\HostProject.uproject" -plugin="F:\Unreal Projects\plugins\DMT\HostProject\Plugins\DMT\DMT.uplugin" -iwyu -noubtmakefiles -manifest="F:\Unreal Projects\
plugins\DMT\HostProject\Saved\Manifest-UE4Game-Win64-Development.xml" -nohotreload -2017 -log="C:\Users\Bilal\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.25\UBT-UE4Game-Win64-Development.txt"
UATHelper: Package Plugin Task (Windows): ERROR: Visual Studio 2017 (14.26.28806) must be installed in order to build this target.
UATHelper: Package Plugin Task (Windows): Took 1,3260476s to run UnrealBuildTool.exe, ExitCode=6
UATHelper: Package Plugin Task (Windows): UnrealBuildTool failed. See log for more details. (C:\Users\Bilal\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.25\UBT-UE4Game-Win64-Development.txt)
UATHelper: Package Plugin Task (Windows): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Package Plugin Task (Windows): BUILD FAILED


Hi there,

I got the same issue here. I can’t figure it out.
Have you managed to solve it?

Thanks by advance.

Hello guys, I notice your issues seems to be related to ULIS3, which is library coded by Praxinos team for the plugin ILIAD.

Did you figure it out how to fix it ?

I’m not using the ILIAD plugin, but I’m getting the same error about not having Visual Studio 2017 installed.

1 Like

There are settings in Engine\Build\InstalledEngineBuild.xml on line 79.
it is set for Vs2017 changing DefaultValue to true enables vs2019.

Have fixed some errors in my builds.

No file Engine\Build\InstalledEngineBuild.xml was found …

Same here, “UATHelper: Packaging (Windows): ERROR: Visual Studio 2022 x64 must be installed in order to build this target.” I , today, installed visual studio 2022, 64bit, and verified via task manager column.

Now what ?
I set visual studio 2022 in editor preferences, under source code.

You can also set:
Edit → Project Settings → Platforms → Windows → Visual Studio 2022
but that doesn’t fix the problem.

2 Likes