Unable to 'build and run' on Unity 2020.3.34f1 for HoloLens2

Jian Yang 0 Reputation points
2024-02-27T16:23:16.91+00:00

Hello,

I am unable to build software on HoloLens 2 with the following issues. This is very urgent and important for my master thesis. Anyone who can help me would be greatly appreciated.User's image

User's image

User's image

HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
380 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Ying Li - MSFT 725 Reputation points Microsoft Vendor
    2024-02-28T05:31:44.4333333+00:00

    Hello, Welcome to Microsoft Q&A,

    When configuring the Build Settings for the UWP platform, if you select ‘Build and Run on’ as ‘Local Machine’, you will see the warning: ‘The local machine does not support running projects compiled for the ARM64 architecture. The project will be built, but it will not run.’ This is the reason you met these errors.

    To build and deploy your application to HoloLens 2, the best practice is to select ‘Build and Run on’ as ‘Local Machine’ and choose ‘Build’ instead of ‘Build And Run’ to generate the Visual Studio project first. With Visual Studio, you can then deploy your application to HoloLens 2 via a wireless network or a USB cable. You can refer to the following tutorials:

    Additionally, Unity 2020 is out of support. We recommend using Unity 2021.3 LTS and Visual Studio 2022 to create Mixed Reality apps.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more