Windows SDK UWP App Error - DEP3321

…衆ロ難τιáo~ 提交于 2019-12-05 02:25:50

I just started a new app and selected the highest Target levels and got this error. I was able to get rid of this error by selecting the default minimum Min Target Version as shown below.

I also encountered the same problem

Severity Code Description Project File Line Suppression State Error DEP3321: To deploy this application, your deployment target should be running Windows Universal Runtime version 10.0.17763.0 or higher. You currently are running version 10.0.17134.648. Please update your OS, or change your deployment target to a device with the appropriate version.

Solution: Right click on the project property and got to the General-> Target Platform Minimum version. In my case, I changed it to "10.0.17134.0" by selecting from the drop-down and then rebuilt it. I worked well. Attached snapshot for reference.

If your app is using APIs that only exist in newer versions of the OS (like 14393 or 15063), then you won't be able to call those on 10586. You will get an exception because the method simply doesn't exist on that machine.

In order to support the app on lower versions of the operating system you will need to wrap the calls to those APIs with an appropriate "IsAPIPresent" check:

https://docs.microsoft.com/en-us/uwp/api/Windows.Foundation.Metadata.ApiInformation

Thanks, Stefan Wick - Windows Developer Platform

Possible Solution: I was facing with the EXACT same issue. I have my SDK 15063, and I have installed Visual Studio 2017 afresh, which also installed SDK 15063 implicitly, but I still kept on getting the same deployment error DEP3321.

I solved this issue in this way - Just go to the "Solution Explorer", on the right side of Visual Studio and do the following steps in this order -

1) Just right click on the project you are deploying

2) Press "Unload Project"

3) Right click on the project_name(unavailable) and press Edit project_name.jsproj. It will open an xml file on left hand side

4) Search for "TargetPlatformVersion" and "TargetPlatformMinVersion". Both are placed next to each other. Mine looked like this - 10.0.15063.0 10.0.15063.0 since mine Error DEP3321 explicitly stated that 'you are currently running version 10.0.14393.1715, so I replaced my "TargetPlatformMinVersion" from 10.0.15063.0 to 10.0.14393.1715 - 10.0.14393.1715

5) Now save it, Ctrl+S

6) Right click on "Solution Explorer" and press Reload Project and press Yes to the popup if you get stating that project is already loaded.

You are done. Just do what you normally do, Build (ctrl+shift+B) and then Debug - F5 or Ctrl+F5. This way the project got deployed for me.

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