# Magic Leap With Unity Betas Fail To Recognize JDK/SDK/NDK/Graddle (Fixed)

**URL:** <https://forum.magicleap.cloud/t/magic-leap-with-unity-betas-fail-to-recognize-jdk-sdk-ndk-graddle-fixed/687>\
**Category:** Unity Development\
**Tags:** development, unity\
**Created:** [August 26, 2022, 6:19am UTC](https://forum.magicleap.cloud/t/magic-leap-with-unity-betas-fail-to-recognize-jdk-sdk-ndk-graddle-fixed/687 "2022-08-26T06:19:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dilmer](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/dilmer/32/199_2.png) [@dilmer](https://forum.magicleap.cloud/u/dilmer)\
**Post date:** [August 26, 2022, 6:19am UTC](https://forum.magicleap.cloud/t/magic-leap-with-unity-betas-fail-to-recognize-jdk-sdk-ndk-graddle-fixed/687/1 "2022-08-26T06:19:42Z")

</div>

Hello everyone !

I spent honestly too many hours trying to find out why I kept getting "You are missing the recommended version JDK|SDK|NDK|Graddle" for each of the android components under external tools and it honestly drove me nuts.

It turns out that my Windows 10 Antivirus was blocking something during the Unity Installation of the Android modules, the installation was always successful but when I was creating a project \> switching to android \> then going to external tools then all I saw were the missing messages above.

So if that happens to you be sure to disable your "Virus & Thread protection Settings" during the installation / or project creation just in case then enable it back.

Hopefully this saves you all the hours I spent 🙂

Thanks everyone !  
Dilmer

---

<div class="post-metadata">

**Author:** ![dilmer](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/dilmer/32/199_2.png) [@dilmer](https://forum.magicleap.cloud/u/dilmer)\
**Post date:** [August 26, 2022, 6:23am UTC](https://forum.magicleap.cloud/t/magic-leap-with-unity-betas-fail-to-recognize-jdk-sdk-ndk-graddle-fixed/687/2 "2022-08-26T06:23:36Z")

</div>

Also couple of more things:

If you already installed Unity I recommend uninstalling it, disable the "Virus & Thread protection Settings" then installing the beta version again with android modules and create your project.

I think the issue is during installation but to be safe keep it disable during project creation, then go back and enable the "Virus & Thread protection Settings".

---

<div class="post-metadata">

**Author:** ![tokufxug](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/tokufxug/32/172_2.png) [@tokufxug](https://forum.magicleap.cloud/u/tokufxug)\
**Post date:** [August 26, 2022, 9:03am UTC](https://forum.magicleap.cloud/t/magic-leap-with-unity-betas-fail-to-recognize-jdk-sdk-ndk-graddle-fixed/687/3 "2022-08-26T09:03:20Z")

</div>

@dilmer It would be nice if we could build it and have an apk file, right?

---

<div class="post-metadata">

**Author:** ![dilmer](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/dilmer/32/199_2.png) [@dilmer](https://forum.magicleap.cloud/u/dilmer)\
**Post date:** [August 26, 2022, 3:43pm UTC](https://forum.magicleap.cloud/t/magic-leap-with-unity-betas-fail-to-recognize-jdk-sdk-ndk-graddle-fixed/687/4 "2022-08-26T15:43:29Z")

</div>

@tokufxug we can now 😉

---

<div class="post-metadata">

**Author:** ![matsumotokaka11](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/matsumotokaka11/32/203_2.png) [@matsumotokaka11](https://forum.magicleap.cloud/u/matsumotokaka11)\
**Post date:** [August 26, 2022, 6:28pm UTC](https://forum.magicleap.cloud/t/magic-leap-with-unity-betas-fail-to-recognize-jdk-sdk-ndk-graddle-fixed/687/5 "2022-08-26T18:28:53Z")

</div>

In rare cases, reinstalling Unity does not solve the problem.  
In that case, you can download the SDK/NDK using AndroidStudio or other software and manually configure the reference settings to solve the problem.

---

<div class="post-metadata">

**Author:** ![shane.sicienski](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/shane.sicienski/32/221_2.png) [@shane.sicienski](https://forum.magicleap.cloud/u/shane.sicienski)\
**Post date:** [August 30, 2022, 5:11pm UTC](https://forum.magicleap.cloud/t/magic-leap-with-unity-betas-fail-to-recognize-jdk-sdk-ndk-graddle-fixed/687/6 "2022-08-30T17:11:16Z")

</div>

I encountered a similar issue—kept getting errors that I didn't have correct JDK or Android SDK when trying to build for Android. Reinstalling Unity did not fix the issue, but installing the directories manually from external sources did. Here is a summary.

**Problems**

- Building seems to require JDK v11.0.14, not the JDK v8 that is installed via Unity HUB when you install the Android modules with Unity 2022.2.0b4
- Building seems to require an Android SDK folder that has cmdline-tools installed, rather the Android SDK which does not have cmdline-tools that is installed via Unity HUB when you install the Android modules with Unity 2022.2.0b4

**Solutions**

- I downloaded JDK v11.0.14 from Oracle ([Java Archive Downloads - Java SE 11](https://www.oracle.com/java/technologies/javase/jdk11-archive-downloads.html))
- I downloaded Android SDK from Android Studio, and made sure to include cmdline-tools ([Download Android Studio & App Tools - Android Developers](https://developer.android.com/studio/))

I set my external references to these and the local build on my machine worked.

---

<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:** [April 17, 2024, 9:05pm UTC](https://forum.magicleap.cloud/t/magic-leap-with-unity-betas-fail-to-recognize-jdk-sdk-ndk-graddle-fixed/687/7 "2024-04-17T21:05:18Z")

</div>


