Can't package Hololens 2 project

Hi,

I’m currently trying out this unreal sample for Hololens 2:

I managed to run the app in Hololens 2 through remoting directly from the editor.
However, when I try to package it, I have the following error:

PackagingResults: Error: ERROR: PRI191: 0x8007007e - Appx manifest not found or is invalid. Please ensure well-formed manifest file is present. Or specify an index name with /in switch.
UATHelper: Packaging (HoloLens): ERROR: Failed to generate Package Resource Index file. See log for details.
PackagingResults: Error: Failed to generate Package Resource Index file. See log for details.

I followed everything mentioned here: Microsoft HoloLens Development | Unreal Engine Documentation

I have everything setup properly in the Hololens project settings (including the certificate, etc).

I’m using UE 4.24.3.
Any ideas?

Thank you

Did you resolove this problem? I had this problem like this before.

Hi, I’m experiencing the same error in UE 4.25.1.

Does anyone have resolved this issue?

Thanks.

I’m posting the full Output Log:


UATHelper: Packaging (HoloLens): ********** BUILD COMMAND STARTED **********
UATHelper: Packaging (HoloLens): Running: C:\Program Files\Epic Games\UE_4.25\Engine\Binaries\DotNET\UnrealBuildTool.exe Hololens2Demo HoloLens Shipping -Project="D:\Unreal Engine\Projects\Edifex\Demos\Hololens2Demo\Hololens2Demo.uproject" "D:\Unreal Engine\Projects\Edifex\Demos\Hololens2Demo\Hololens2Demo.uproject" -NoUBTMakefiles -remoteini="D:\Unreal En
gine\Projects\Edifex\Demos\Hololens2Demo" -Architecture=arm64 -Manifest="D:\Unreal Engine\Projects\Edifex\Demos\Hololens2Demo\Intermediate\Build\Manifest.xml" -NoHotReload -log="C:\Users\Carlos Flores Gzz\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.25\UBT-Hololens2Demo-HoloLens-Shipping.txt"
UATHelper: Packaging (HoloLens): Using ARM64 architecture for deploying to HoloLens device
UATHelper: Packaging (HoloLens): Building using Windows SDK version 10.0.18362.0 for HoloLens
UATHelper: Packaging (HoloLens): Parsing headers for Hololens2Demo
UATHelper: Packaging (HoloLens): Running UnrealHeaderTool "D:\Unreal Engine\Projects\Edifex\Demos\Hololens2Demo\Hololens2Demo.uproject" "D:\Unreal Engine\Projects\Edifex\Demos\Hololens2Demo\Intermediate\Build\HoloLens\arm64\Hololens2Demo\Shipping\Hololens2Demo.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -Warnin
gsAsErrors -abslog="C:\Users\Carlos Flores Gzz\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.25\UHT-Hololens2Demo-HoloLens-Shipping.txt" -installed
UATHelper: Packaging (HoloLens): Reflection code generated for Hololens2Demo in 28.5942429 seconds
UATHelper: Packaging (HoloLens): Writing manifest to D:\Unreal Engine\Projects\Edifex\Demos\Hololens2Demo\Intermediate\Build\Manifest.xml
UATHelper: Packaging (HoloLens): Building Hololens2Demo...
UATHelper: Packaging (HoloLens): Building 13 actions with 8 processes...
UATHelper: Packaging (HoloLens): [1/13] Module.UXToolsWMR.cpp
UATHelper: Packaging (HoloLens): [2/13] Module.UXTools.gen.2_of_2.cpp
UATHelper: Packaging (HoloLens): [3/13] Module.UXTools.gen.1_of_2.cpp
UATHelper: Packaging (HoloLens): [4/13] Module.UXToolsRuntimeSettings.gen.cpp
UATHelper: Packaging (HoloLens): [5/13] Module.UXTools.cpp
UATHelper: Packaging (HoloLens): [6/13] Module.UXToolsRuntimeSettings.cpp
UATHelper: Packaging (HoloLens): [7/13] SharedPCH.Engine.ShadowErrors.cpp
UATHelper: Packaging (HoloLens): [8/13] Hololens2Demo.cpp
UATHelper: Packaging (HoloLens): [9/13] Hololens2Demo.init.gen.cpp
UATHelper: Packaging (HoloLens): [10/13] Hololens2DemoGameModeBase.cpp
UATHelper: Packaging (HoloLens): [11/13] Hololens2DemoGameModeBase.gen.cpp
UATHelper: Packaging (HoloLens): [12/13] Hololens2Demo-HoloLens-Shippingarm64.exe
UATHelper: Packaging (HoloLens): Creating library D:\Unreal Engine\Projects\Edifex\Demos\Hololens2Demo\Binaries\HoloLens\Hololens2Demo-HoloLens-Shippingarm64.lib and object D:\Unreal Engine\Projects\Edifex\Demos\Hololens2Demo\Binaries\HoloLens\Hololens2Demo-HoloLens-Shippingarm64.exp
UATHelper: Packaging (HoloLens): LINK : warning LNK4199: /DELAYLOAD:Microsoft.Azure.SpatialAnchors.dll ignored; no imports found from Microsoft.Azure.SpatialAnchors.dll
UATHelper: Packaging (HoloLens): LINK : warning LNK4199: /DELAYLOAD:Microsoft.MixedReality.QR.dll ignored; no imports found from Microsoft.MixedReality.QR.dll
UATHelper: Packaging (HoloLens): [13/13] Hololens2Demo-HoloLens-Shippingarm64.target
UATHelper: Packaging (HoloLens): Total time in Parallel executor: 222.00 seconds
UATHelper: Packaging (HoloLens): Deploying Hololens2Demo HoloLens Shipping...
UATHelper: Packaging (HoloLens): Prepping Hololens2Demo for deployment to HoloLens
UATHelper: Packaging (HoloLens): WARNING:
UATHelper: Packaging (HoloLens):
UATHelper: Packaging (HoloLens): file:///C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/winrt/UapManifestSchema.xsd(186): The 'http://schemas.microsoft.com/appx/manifest/uap/windows10/8:Launch' attribute is not declared.
UATHelper: Packaging (HoloLens):
UATHelper: Packaging (HoloLens): XML schema failed to compile; validation of the final AppxManifest.xml will be skipped.
UATHelper: Packaging (HoloLens):
UATHelper: Packaging (HoloLens): If your AppxManifest.xml is valid then this is harmless, but if it contains invalid content you may encounter packaging or deployment errors.
UATHelper: Packaging (HoloLens):
UATHelper: Packaging (HoloLens): Updating your Windows SDK and/or Visual Studio installation may correct the schema problems and simplify diagnosis of invalid content.
UATHelper: Packaging (HoloLens): W Microsoft (R) MakePRI Tool
UATHelper: Packaging (HoloLens): Copyright (C) 2013 Microsoft. All rights reserved.
UATHelper: Packaging (HoloLens):
UATHelper: Packaging (HoloLens):
UATHelper: Packaging (HoloLens): Usage:
UATHelper: Packaging (HoloLens):
UATHelper: Packaging (HoloLens): ------
UATHelper: Packaging (HoloLens): MakePri.exe new /pr <project root> /cf <config file> [options]
UATHelper: Packaging (HoloLens):
UATHelper: Packaging (HoloLens): Example:
UATHelper: Packaging (HoloLens):
UATHelper: Packaging (HoloLens): --------
UATHelper: Packaging (HoloLens): MakePri.exe new /pr C:\MyApp\src\ /cf C:\MyApp\priconfig.xml /mn
UATHelper: Packaging (HoloLens): C:\MyApp\AppXManifest.xml /of C:\MyApp\src\resources.pri /o
UATHelper: Packaging (HoloLens):
UATHelper: Packaging (HoloLens): Description:
UATHelper: Packaging (HoloLens):
UATHelper: Packaging (HoloLens): ------------
UATHelper: Packaging (HoloLens): Creates a PRI file at [outputfile] by indexing all files in the
UATHelper: Packaging (HoloLens): [projectroot]and its subdirectories as directed by the [configxml]. The
UATHelper: Packaging (HoloLens): index will be assigned [indexname] to reference resources in the application
UATHelper: Packaging (HoloLens):
UATHelper: Packaging (HoloLens): Required Parameters:
UATHelper: Packaging (HoloLens):
UATHelper: Packaging (HoloLens): --------------------
UATHelper: Packaging (HoloLens): /ProjectRoot(pr) : <FOLDERPATH> Root location of project files
UATHelper: Packaging (HoloLens): /ConfigXml(cf) : <FILEPATH> Configuration file location. Use
UATHelper: Packaging (HoloLens): 'Makepri.exe createconfig' command to generate one
UATHelper: Packaging (HoloLens):
UATHelper: Packaging (HoloLens): Options:
UATHelper: Packaging (HoloLens):
UATHelper: Packaging (HoloLens): --------
UATHelper: Packaging (HoloLens): /OutputFile(of) : <FILEPATH> Output location of PRI file, default is
UATHelper: Packaging (HoloLens): [current directory]\resources.pri
UATHelper: Packaging (HoloLens): /Manifest(mn) : <FILEPATH> Location of the application or component's
UATHelper: Packaging (HoloLens): manifest. This parameter is ignored if [indexname]
UATHelper: Packaging (HoloLens): is given. Default is [projectroot]\AppXManifest.xml
UATHelper: Packaging (HoloLens): /IndexName(in) : <STRING> Name for the generated index of resources.
UATHelper: Packaging (HoloLens): Typically matches the AppX package name, class library
UATHelper: Packaging (HoloLens): simple name, etc. May be supplied via the
UATHelper: Packaging (HoloLens): [manifest] parameter.
UATHelper: Packaging (HoloLens): If IndexName is not specified and an AppX manifest
UATHelper: Packaging (HoloLens): file is not present, the default name 'Application'
UATHelper: Packaging (HoloLens): will be used.
UATHelper: Packaging (HoloLens): /VersionMajor(vma): <INTEGER> [Deprecated] Major version number for
UATHelper: Packaging (HoloLens): index, default is 1
UATHelper: Packaging (HoloLens): /IndexLog(il) : <FILEPATH> XML Log of indexed resources, no file
UATHelper: Packaging (HoloLens): generated by default
UATHelper: Packaging (HoloLens): /AutoMerge(am) : This flag is not recommended for normal use with AppX
UATHelper: Packaging (HoloLens): ERROR: ERROR: PRI191: 0x8007007e - Appx manifest not found or is invalid. Please ensure well-formed manifest file is present. Or specify an index name with /in switch.
UATHelper: Packaging (HoloLens): packages. It causes Makepri.exe to set the auto
UATHelper: Packaging (HoloLens): merge flag within the PRI file. Default is not set.
UATHelper: Packaging (HoloLens): /ReverseMap(rm) : Generate a reverse mapping section in the PRI file
PackagingResults: Error: ERROR: PRI191: 0x8007007e - Appx manifest not found or is invalid. Please ensure well-formed manifest file is present. Or specify an index name with /in switch.
UATHelper: Packaging (HoloLens): which can be used for debugging purposes.
UATHelper: Packaging (HoloLens): /MappingFile(mf) : <MAPPINGFILETYPE> Generate a mapping file in the given
UATHelper: Packaging (HoloLens): file format.
UATHelper: Packaging (HoloLens): /SchemaFile(sf) : <FILEPATH> Output location of XML resource schema
UATHelper: Packaging (HoloLens): description.
UATHelper: Packaging (HoloLens): /IndexOptions(io) : <OPTIONS> Options to provide detailed control over
UATHelper: Packaging (HoloLens): behavior of resource indexers.
UATHelper: Packaging (HoloLens): /Overwrite(o) : Overwrite an existing output file of the same name
UATHelper: Packaging (HoloLens): without prompting
UATHelper: Packaging (HoloLens): /Verbose(v) : Causes verbose messages to be output to the console
UATHelper: Packaging (HoloLens): /Help(h, ?) : Display the usage help text
UATHelper: Packaging (HoloLens): /ExtensionDll(ex) : <FILEPATH> Location of the MRT environment extension
UATHelper: Packaging (HoloLens): DLL. This DLL must be signed by a Microsoft-issued
UATHelper: Packaging (HoloLens): certificate. Default is an empty path (no DLL
UATHelper: Packaging (HoloLens): will be used).
UATHelper: Packaging (HoloLens):
UATHelper: Packaging (HoloLens):
UATHelper: Packaging (HoloLens): FOLDERPATH - is a valid path to a folder
UATHelper: Packaging (HoloLens): FILEPATH - is a path to a file, either relative to the current
UATHelper: Packaging (HoloLens): directory or absolute
UATHelper: Packaging (HoloLens): MAPPINGFILETYPE - Supported File type(s): 'AppX'
UATHelper: Packaging (HoloLens):
UATHelper: Packaging (HoloLens): ERROR: Failed to generate Package Resource Index file. See log for details.
PackagingResults: Error: Failed to generate Package Resource Index file. See log for details.
UATHelper: Packaging (HoloLens): Took 260.1546354s to run UnrealBuildTool.exe, ExitCode=6
UATHelper: Packaging (HoloLens): UnrealBuildTool failed. See log for more details. (C:\Users\Carlos Flores Gzz\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.25\UBT-Hololens2Demo-HoloLens-Shipping.txt)
UATHelper: Packaging (HoloLens): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Packaging (HoloLens): BUILD FAILED
PackagingResults: Error: Unknown Error