'HandJointKind' could not be found

I’m trying to run the hand tracking demo (HandInteractionExamples).
I’m running Unity 2019.1.0f2 (i think the same thing happened in 2019.2.0b1).

  • Microsoft Mixed Reality Toolkit v2.0.0 RC2 is the toolkit version.
  • Import Assets, the foundation and the examples.
  • Go to build, switch to Universal Windows Platform.
  • Target SDK version - i’ve tried both Latest Installed and switched to 10.0.10240.0

I get a bunch of errors like: Assets\MixedRealityToolkit.Providers\WindowsMixedReality\WindowsMixedRealityArticulatedHand.cs(390,73): error CS0246: The type or namespace name ‘HandJointKind’ could not be found (are you missing a using directive or an assembly reference?)

  • error CS0246: The type or namespace name ‘HandMeshObserver’ could not be found (are you missing a using directive or an assembly reference?)
  • Error building Player because scripts had compiler errors
  • Build completed with a result of ‘Failed’
  • UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
  • UnityEditor.BuildPlayerWindow+BuildMethodException: 5 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00242] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:194 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:97 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
  • MissingMethodException: void UnityEditor.PlatformIconKind…ctor(int,string,UnityEditor.BuildTargetGroup,string[ ])
    Rethrow as TypeInitializationException: The type initializer for ‘UnityEditor.iOS.iOSPlatformIconKind’ threw an exception.

Let me know where I should start to look to address these?

Looks like the Microsoft’s toolkit depends on a newer version of Windows SDK than you have installed on your machine.

Ok I tried to update the Windows SDK at this link, and restarted the PC, but still get the same errors.

EDIT - I think this version might depend on some kind of preview version of windows as part of the windows insider program.

hi did you resolve this? i made the same error

Unfortunately not, it looked like a rat’s nest of issues here.

I have the same issue as well. What can we do?

Hi all, those errors are from types not available in previous versions of the Windows SDK. These types appear in 18362 or later (per the link above).

Here’s the steps that have helped work around this previously:

https://stackoverflow.com/questions/55616928/mrtk-v2-need-to-update-hololens/55626479

You should not need an 18362 build of Windows to build HoloLens 2 apps using Unity, just the SDK.

These types appear in 18362,install 18362 SDK can solve the problem.what’s more,i found that if you get this error and you have installed the 18362SDK.It may be is the problem of unity,check the build setting->target SDK version,make sure 18362 version in those selections.If not,reinstall the 18362SDK and reboot your computer.Normally,you can build successfully.