- Home /
[UWP & Device Portal] Deployment failed - Must specify an appx file to install
Unity version : 2019.4.4
I'm trying to deploy an unity UWP app to Hololens2 using device portal.
When I "Build And Run" the project in unity Build Settings window, BuildFailedException happens.
The process of building the app works fine, but I think there is a problem with the deployment process.
So if I open the built project directly in Visual Studio 2019 and deploy it to the device, deployment works perfectly fine.
This problem keeps bottlenecks in the development-test iteration process.
I wanted to see if my project source was a problem, but after creating a new project and following the hololens2 tutorial(https://docs.microsoft.com/en-us/windows/mixed-reality/mr-learning-base-02), I still get the same problem.
I don't even know what the broken characters in that error log is....
Can someone please tell me how to fix this?
Error Log
BuildFailedException: Deployment failed. Output:System.ArgumentNullException: ���� null�� �� �����ϴ�. �Ű� ���� �̸�: Must specify an appx file to install ��ġ: DevicePortalTool.AppOperation.ExecuteInstallOperation(ParameterHelper parameters) ��ġ: DevicePortalTool.AppOperation.ExecuteOperationInternal(Operation op, ParameterHelper parameters)
Build completed with a result of 'Failed' in 82 seconds (81633 ms) UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bb] in :0 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in :0 UnityEngine.GUIUtility:processEvent(Int32, IntPtr)