# Errors on importing mrtk-ml2-1.12.1-v1 unity package

**URL:** <https://forum.magicleap.cloud/t/errors-on-importing-mrtk-ml2-1-12-1-v1-unity-package/3153>\
**Category:** Unity Development\
**Tags:** development, unity, mrtk-2\
**Created:** [February 8, 2024, 5:45pm UTC](https://forum.magicleap.cloud/t/errors-on-importing-mrtk-ml2-1-12-1-v1-unity-package/3153 "2024-02-08T17:45:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aps](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@aps](https://forum.magicleap.cloud/u/aps)\
**Post date:** [February 8, 2024, 5:45pm UTC](https://forum.magicleap.cloud/t/errors-on-importing-mrtk-ml2-1-12-1-v1-unity-package/3153/1 "2024-02-08T17:45:52Z")

</div>

**Unity Editor version** : 2022.3.18f1  
**ML2 OS version** : 1.5.0  
**MLSDK version** : 1.5.0  
**Unity SDK version** : 1.12.1  
**Host OS** : (Windows/MacOS) Windows 11  
When I import mrtk-ml2-1.12.1-v1 package into my project, I get several errors due to missing assembly references. Is this expected? I was able to resolve these. However, I did get a compile error due to an apparent bug in code in files: MagicLeapHandTrackingInputProvider.cs and MagicLeapDeviceManager.cs  
Both of them have the same error. They make use of WaitUntil() function which doesn't work in a non MonoBehaviour class. Had to create a function of our own to make it work, in this form:  
private async Task WaitUntil(Func check)  
{  
while (true)  
{  
if (check())  
{  
return;  
}  
await Task.Delay(100);  
}  
}  
Please let us know the right way to resolve the compile errors and if this solution is ok.

---

<div class="post-metadata">

**Author:** ![etucker](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/etucker/32/842_2.png) [@etucker](https://forum.magicleap.cloud/u/etucker)\
**Post date:** [February 8, 2024, 10:37pm UTC](https://forum.magicleap.cloud/t/errors-on-importing-mrtk-ml2-1-12-1-v1-unity-package/3153/2 "2024-02-08T22:37:00Z")

</div>

Hi @aps,

Thank you for reaching out regarding this. I have reported this bug to our team and I will report back as soon as I learn more. Thank you for providing a workaround as well.

Best,

El

---

<div class="post-metadata">

**Author:** ![kbabilinski](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kbabilinski/32/19_2.png) [@kbabilinski](https://forum.magicleap.cloud/u/kbabilinski)\
**Post date:** [February 9, 2024, 6:48pm UTC](https://forum.magicleap.cloud/t/errors-on-importing-mrtk-ml2-1-12-1-v1-unity-package/3153/3 "2024-02-09T18:48:41Z")

</div>

Do you mind providing the version of your core MRTK package. Are you using the latest version of MRTK 2.8? The `com.unity.xr.magicleap` package as well?

---

<div class="post-metadata">

**Author:** ![aps](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@aps](https://forum.magicleap.cloud/u/aps)\
**Post date:** [February 9, 2024, 6:57pm UTC](https://forum.magicleap.cloud/t/errors-on-importing-mrtk-ml2-1-12-1-v1-unity-package/3153/4 "2024-02-09T18:57:20Z")

</div>

I am using Magic Leap XR Plugin 7.0.0  
For MRTK, I see many packages, attaching a screenshot with relevant MRTK versions

 ![image](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/2X/f/f3c5813ecf7a13f55a6d3e3d85e6e1e7aaa6f25c.png)  
I must mention one more thing I forgot to mention earlier in the post, I had to delete all the editor scripts because it was unable to find MixedReality.Toolkit assembly and I couldn't find it in the project. A sample error is: "Assets\MRTK-Magic Leap 2\Providers\MagicLeap\Scripts\Editor\MagicLeapSpeechInputProfileInspector.cs(14,38): error CS0234: The type or namespace name 'Editor' does not exist in the namespace 'Microsoft.MixedReality.Toolkit' (are you missing an assembly reference?)"

---

<div class="post-metadata">

**Author:** ![kbabilinski](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kbabilinski/32/19_2.png) [@kbabilinski](https://forum.magicleap.cloud/u/kbabilinski)\
**Post date:** [February 9, 2024, 7:46pm UTC](https://forum.magicleap.cloud/t/errors-on-importing-mrtk-ml2-1-12-1-v1-unity-package/3153/5 "2024-02-09T19:46:16Z")

</div>

I recommend updating the MRTK packages to 2.8.3 to insure compatibility. Once the packages are updated, re-import the Magic Leap MRTK package and see if the issue persists.

If you see an error regarding an assembly that is not found, you should make sure that there are no Assembly Definition files that are effecting the Magic Leap MRTK scripts folder.
