简体   繁体   English

MRTK(V2)是否需要更新Hololens?

[英]MRTK (V2) Need to update Hololens?

I'm trying to check out the new MRTK (V2) but I had been having troubles making the build, first on Unity which make me download the Windows SDK 18362, now I'm trying to continue the build on Visual Studio 2017 for testing but it brings me this error: 我正在尝试检查新的MRTK(V2),但是在进行构建时遇到了麻烦,首先是在Unity上,这使我下载了Windows SDK 18362,现在我试图在Visual Studio 2017上继续构建以进行测试但这给我带来了这个错误:

To deploy this application, your deployment target should be running Windows Universal Runtime version 10.0.18362.0 or higher. 要部署此应用程序,您的部署目标应运行Windows Universal Runtime版本10.0.18362.0或更高版本。 You currently are running version 10.0.17134.80. 您当前正在运行版本10.0.17134.80。 Please update your OS, or change your deployment target to a device with the appropriate version. 请更新您的操作系统,或将您的部署目标更改为具有适当版本的设备。

My Windows 10 OS is 10.0.18632.30 but my HoloLens its on 10.0.17763.380 and its seems it won't update to a higher version even with Windows Insider enabled. 我的Windows 10操作系统是10.0.18632.30,但我的HoloLens是在10.0.17763.380上,即使启用Windows Insider,它似乎也不会更新到更高版本。

I expect to test the premade demos of MRTK(V2) on my HoloLens 1. The build on Visual Studio wont pass from the error of incompatible version. 我希望在我的HoloLens 1上测试MRTK(V2)的预制演示。在Visual Studio上的构建不会因版本不兼容的错误而通过。

To fix this error you need to update your Build Settings so that the Minimum SDK version is at or lower than your HoloLens OS version. 要解决此错误,您需要更新构建设置,以使最低SDK版本等于或低于HoloLens OS版本。 I usually use 10.0.10240.0. 我通常使用10.0.10240.0。 You still need to make sure that your target SDK version is “latest installed”. 您仍然需要确保目标SDK版本是“最新安装”。 Try doing the following steps: 尝试执行以下步骤:

  1. Delete your generated UWP project. 删除您生成的UWP项目。
  2. Open the build settings window in Unity. 在Unity中打开构建设置窗口。
  3. Make sure that Minimum SDK is is 10.0.10240.0 确保最低SDK为10.0.10240.0
  4. Make sure that Target SDK version is “latest installed” 确保目标SDK版本是“最新安装”
  5. Re-generate the solution and deploy to HoloLens. 重新生成解决方案并部署到HoloLens。

Emphasize Bullet 3# in Julia answer. 在Julia答案中强调Bullet 3#。 Minimum SDK must be 10.0.10240.0 otherwise you will get a fatal error on the first app run. 最低SDK 必须为10.0.10240.0,否则在首次运行应用程序时会出现致命错误。

I am using Visual Studio 2019 and Unity 2019.2.5f1 and the suggested solution did not quite work for me. 我正在使用Visual Studio 2019和Unity 2019.2.5f1,建议的解决方案对我来说不太有效。

I also had to manually retarget the built solution inside Visual Studio to match the minimum SDK version 10.0.10240.0. 我还必须在Visual Studio中手动重新定位已构建的解决方案,以匹配最低SDK版本10.0.10240.0。 After this i was able to build and execute the MRTK 2.1 Examples inside the Hololens 1 Emulator. 之后,我得以在Hololens 1仿真器中构建并执行MRTK 2.1示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM