# Android SDK command-line tools component is not found

**URL:** <https://forum.magicleap.cloud/t/android-sdk-command-line-tools-component-is-not-found/3301>\
**Category:** Unity Development\
**Tags:** unity, android\
**Created:** [March 21, 2024, 6:16pm UTC](https://forum.magicleap.cloud/t/android-sdk-command-line-tools-component-is-not-found/3301 "2024-03-21T18:16:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![garry.osborne1](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/garry.osborne1/32/1565_2.png) [@garry.osborne1](https://forum.magicleap.cloud/u/garry.osborne1)\
**Post date:** [March 21, 2024, 6:16pm UTC](https://forum.magicleap.cloud/t/android-sdk-command-line-tools-component-is-not-found/3301/1 "2024-03-21T18:16:23Z")

</div>

Hi All

Just got around to trying to build the Magic Leap Examples. I get the following error:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/2X/9/9c02834fd43cfd286aa144d3bc6ef9de845e8e43.png)

Unable to detect SDK in the selected directory. C:\Program Files\Unity\Hub\Editor\2022.3.20f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\cmdline-tools\latest\bin\sdkmanager.bat does not exist. Android SDK command-line tools component is not found. Make sure "Command-line Tools (latest)" is installed in the SDK manager.  
If command-line tools are installed, but this message is still shown, please restart the Unity editor.

The Magic Leap Setup tool reports everything is ok.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/2X/e/e53acbba4b7abd0e0b007f9121b972c432f76c99.png)

Any thoughts?

**Unity Editor version** : 2022.3.20f1  
**ML2 OS version** : 1.6.0  
**Unity SDK version** : 2.1.0  
**Host OS** : Windows

**Error messages from logs** (syntax-highlighting is supported via Markdown):

---

<div class="post-metadata">

**Author:** ![garry.osborne1](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/garry.osborne1/32/1565_2.png) [@garry.osborne1](https://forum.magicleap.cloud/u/garry.osborne1)\
**Post date:** [March 21, 2024, 6:48pm UTC](https://forum.magicleap.cloud/t/android-sdk-command-line-tools-component-is-not-found/3301/2 "2024-03-21T18:48:55Z")

</div>

Hello All,

Based on research this is looking like a Unity Hub issue with version 2022.3.20f1 install. Working to confirm. I recommend you use the latest LTS and be sure the android tools install during the install process.

Best Regards,

Garry

---

<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:** [March 22, 2024, 1:25am UTC](https://forum.magicleap.cloud/t/android-sdk-command-line-tools-component-is-not-found/3301/3 "2024-03-22T01:25:53Z")

</div>

You might be able to resolve this by following our Native setup guide and installing the tools via Android studio, then pointing to the tools in your Unity Preferences \> External Tools paths

---

<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:** [August 14, 2024, 2:47am UTC](https://forum.magicleap.cloud/t/android-sdk-command-line-tools-component-is-not-found/3301/4 "2024-08-14T02:47:44Z")

</div>


