无法部署到 HoloLens(错误 80004005)
Cannot deploy to HoloLens (error 80004005)
我新安装了 Unity 2018.3.10 和 Visual Studio 2017 (15.9.10)。由于 Visual Studio ("DEP0100: Please ensure that target device has developer mode enabled. Could not obtain a developer license on 127.0.0.1 due to error 80004005") 中的错误,我无法将基本的 3D 统一应用程序部署到 HoloLens。以下是重现步骤:
在 Unity 中创建新的 3D 场景。将相机位置设置为 0,0,0,并将相机清晰颜色设置为纯黑色。在相机前创建一个尺寸为 0.1x0.1x0.1
的红色立方体
Window / 包管理器:删除广告、分析库、应用内购买、TextMesh Pro、Unity Collaborate,因为我不需要这些
屏幕截图中显示的构建设置和项目设置(质量和播放器设置)。脚本后端 = IL2CPP
- Unity成功生成.sln文件
HoloLens OS 内部版本 10.0.17763.316。在 Settings/Update & Security / For developers 下,我设置 'Use developer features'=on, 'Enable Device Portal'=on
我不知道是否有必要,但在我的电脑上,我也做 Settings/Update & Security/For 开发人员,select 'Developer mode' , 'Enable Device Portal'=开启, 'Device discovery'=开启
- 通过 USB 数据线将 HoloLens 连接到电脑
- 打开 Visual Studio 中的 .sln 文件。设置为发布、x86、设备。构建/部署解决方案
- 编译成功,Visual Studio 要求输入 PIN,我通过打开设置/更新和安全/对于开发人员/设备发现/配对从 HoloLens 获得 PIN
- Visual Studio 显示错误消息:DEP0100:请确保目标设备已启用开发者模式。由于错误 80004005
,无法在 127.0.0.1 上获得开发者许可证
- 确保在 Hololens 上启用了开发者模式。您可以在设置中找到它。
如果还是不行的话...
- 尝试重置设备。
重置很烦人,但这是在论坛上针对“由于错误 80004005 而无法在 127.0.0.1 上获得开发人员许可证”找到的解决方案:
https://forums.hololens.com/discussion/8964/could-not-obtain-developer-license-for-hololens
将评论粘贴到此处,因为这些论坛将被删除:
"shyykoserhiy ✭ November 2017 I've had the same issue. Tried to run
from two different setups: MacBook Pro 2016 with touch bar (windows 10
Pro in Bootcamp) and Surface Pro 4. Same error on two different
machines. So I've though that it might be a problem with the HoloLens
itself. After Resetting the HoloLens from Settings> Update and
Security> Reset everything started to work just fine. This is the only
solution that've worked for me."
unity论坛中也提到了:
https://forum.unity.com/threads/could-not-obtain-developer-license-for-hololens.500808/
"billyjacobs So I did some searching and found that one way to solve
the problem is to reset your hololens device. It will have the latest
version of the device software after you reset it. I was hesitant
against doing this at first but it worked like a charm."
我新安装了 Unity 2018.3.10 和 Visual Studio 2017 (15.9.10)。由于 Visual Studio ("DEP0100: Please ensure that target device has developer mode enabled. Could not obtain a developer license on 127.0.0.1 due to error 80004005") 中的错误,我无法将基本的 3D 统一应用程序部署到 HoloLens。以下是重现步骤:
在 Unity 中创建新的 3D 场景。将相机位置设置为 0,0,0,并将相机清晰颜色设置为纯黑色。在相机前创建一个尺寸为 0.1x0.1x0.1
的红色立方体
Window / 包管理器:删除广告、分析库、应用内购买、TextMesh Pro、Unity Collaborate,因为我不需要这些
屏幕截图中显示的构建设置和项目设置(质量和播放器设置)。脚本后端 = IL2CPP
- Unity成功生成.sln文件
HoloLens OS 内部版本 10.0.17763.316。在 Settings/Update & Security / For developers 下,我设置 'Use developer features'=on, 'Enable Device Portal'=on
我不知道是否有必要,但在我的电脑上,我也做 Settings/Update & Security/For 开发人员,select 'Developer mode' , 'Enable Device Portal'=开启, 'Device discovery'=开启
- 通过 USB 数据线将 HoloLens 连接到电脑
- 打开 Visual Studio 中的 .sln 文件。设置为发布、x86、设备。构建/部署解决方案
- 编译成功,Visual Studio 要求输入 PIN,我通过打开设置/更新和安全/对于开发人员/设备发现/配对从 HoloLens 获得 PIN
- Visual Studio 显示错误消息:DEP0100:请确保目标设备已启用开发者模式。由于错误 80004005 ,无法在 127.0.0.1 上获得开发者许可证
- 确保在 Hololens 上启用了开发者模式。您可以在设置中找到它。
如果还是不行的话...
- 尝试重置设备。
重置很烦人,但这是在论坛上针对“由于错误 80004005 而无法在 127.0.0.1 上获得开发人员许可证”找到的解决方案: https://forums.hololens.com/discussion/8964/could-not-obtain-developer-license-for-hololens
将评论粘贴到此处,因为这些论坛将被删除:
"shyykoserhiy ✭ November 2017 I've had the same issue. Tried to run from two different setups: MacBook Pro 2016 with touch bar (windows 10 Pro in Bootcamp) and Surface Pro 4. Same error on two different machines. So I've though that it might be a problem with the HoloLens itself. After Resetting the HoloLens from Settings> Update and Security> Reset everything started to work just fine. This is the only solution that've worked for me."
unity论坛中也提到了: https://forum.unity.com/threads/could-not-obtain-developer-license-for-hololens.500808/
"billyjacobs So I did some searching and found that one way to solve the problem is to reset your hololens device. It will have the latest version of the device software after you reset it. I was hesitant against doing this at first but it worked like a charm."