簡體   English   中英

HoloLens 錯誤:“出現部署錯誤。繼續嗎?”

[英]HoloLens error: "There were deployment errors. Continue?"

我正在嘗試按照教程將我在 Unity 中構建的應用程序部署到 HoloLens 2。

這是我在 Unity 中輸入的構建設置。 Unity 中的構建設置

當我 go 通過在 Visual Studio 中選擇“Master”、“ARM64”、“Device”然后“Start without debugging”來部署應用程序時,我收到此錯誤“有部署錯誤。繼續?”。 如果我 select 是,那么我會收到以下錯誤:

Error DEP6957: Failed to connect to device '127.0.0.1' using Universal Authentication. 
Please verify the correct remote authentication mode is specified in the project debug settings.
COMException - Error HRESULT E_FAIL has been returned from a call to a COM component.
[0x80004005] XamlControlsGallery

我打開了 Microsoft HoloLens 門戶並登錄到 HoloLens,筆記本電腦和 HoloLens 都在同一個 WiFi 上。

我試過了:

  • 重新啟動 Visual Studio、Microsoft HoloLens 門戶、HoloLens、我的筆記本電腦。
  • 從 Unity 重建項目。
  • 使用“Release”或“Master”和“ARM64”或“x64”和“Device”的所有組合。

要通過 Wi-Fi 部署到 HoloLens,請在部署目標下拉菜單中使用 select “遠程機器”而不是“設備”。 然后,go 到 Project > Properties > Configuration Properties > Debugging,並在地址或機器名稱字段中輸入您設備的 IP 地址,更多信息請參閱: 通過 Wi-Fi 部署 HoloLens 應用

我最終通過以下步驟使其工作:

  1. 確保 Unity 中的構建設置與您將在 Visual Studio 中使用的設置相同,只是設備設置應為“本地計算機”。
  2. 在 Visual Studio 中,select“遠程機器”。
  3. 在 Visual Studio 中打開項目后,select Edit > Project > Properties > Configuration Properties > Debugging 並輸入設備的 IP 地址。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM