How to develop windows 10 uwp on real device (mobile)?

大憨熊 提交于 2019-11-26 17:47:59

问题


I'm trying to debbuging my app on real device (lumia 830 with windows 10 mobile 10.0.10581.0) Developer Mode is ON on both devices (mobile and PC), but when i'm trying to emulate app on my device I've got an error (DEP6100 and DEP6200). However i can easily emulate on emulators and my PC. Can't understand what's the problem.

Has anyone been able to successfully deploy a UWP app on phone and debug it? How to register your phone for development for Windows 10 mobile?


回答1:


I faced the same problem yesterday and I solved applying this:

  • Create a Registry Key in: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SirepClient] (Probably you will need to create it)
  • Create a dword with name "DisableProtocol3" and value 00000001
  • Restart Visual Studio and try deploying the solution back again.

IMPORTANT: It's a provisional solution meanwhile a patch is included in Windows 10 mobile. We will have to consider deleting this key after that.

Solution found here.




回答2:


I've faced similar problem few days ago. It turned out that Emulators and SDK version must match the Insider preview build on your device.

Try to download both of them: emulators and SDK from here, in my case it worked like a charm.

As for registering device for developement - it's not needed any more. Starting from Windows 10 all devices have 'developer unlock' in settings.




回答3:


This problem may be caused by development environment, such as VS version, SDK version, etc. Please update your SDK version and phone OS version to the latest one, and I recommend you to use VS2017 to develop Windows 10 apps. I have met this problem when I used VS2015.



来源:https://stackoverflow.com/questions/33473200/how-to-develop-windows-10-uwp-on-real-device-mobile

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!