# ADB Is Not Recognized as a Command

**URL:** <https://forums.unrealengine.com/t/adb-is-not-recognized-as-a-command/381157>\
**Category:** Mobile\
**Tags:** SDK, unreal-engine, log, Android, question\
**Created:** [January 7, 2017, 5:49am UTC](https://forums.unrealengine.com/t/adb-is-not-recognized-as-a-command/381157 "2017-01-07T05:49:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_1786a85d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1786a85d](https://forums.unrealengine.com/u/anonymous_user_1786a85d)\
**Post date:** [January 7, 2017, 5:49am UTC](https://forums.unrealengine.com/t/adb-is-not-recognized-as-a-command/381157/1 "2017-01-07T05:49:17Z")

</div>

Hello,  
I’m trying to get a logcat from my program on my android device. However, when checking for my device, I realized that adb didn’t work as a command. I assumed this was because I didn’t have an android sdk installed properly- or something along those lines. So, I went into the unreal engine files and reinstalled the codeworks. I did that twice- I’m not sure if that’s what I was supposed to do (I’m rather green to this, if you couldn’t tell). What am I doing wrong? Is there more information that I need to give you?

Thank you.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [January 9, 2017, 7:06pm UTC](https://forums.unrealengine.com/t/adb-is-not-recognized-as-a-command/381157/2 "2017-01-09T19:06:49Z")

</div>

TalkingIsGreat,

Could you show me screenshots of where exactly you’re getting stuck at? Make sure that you’ve ‘trusted’ your device with your computer. Can you upload a screenshot of your Android SDK settings that are in the engine? Are you not seeing your device show up in Monitor.bat?

Thank you!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1786a85d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1786a85d](https://forums.unrealengine.com/u/anonymous_user_1786a85d)\
**Post date:** [January 10, 2017, 1:45am UTC](https://forums.unrealengine.com/t/adb-is-not-recognized-as-a-command/381157/3 "2017-01-10T01:45:00Z")

</div>

Hello ,

I’m using command prompt to get a log. I found that I needed an android SDK to do the “abd” command, and I tried reinstalling it using the one that was given with Unreal Engine (or at least I think that’s what that thing is under AndroidWorks). I found a temporary solution by putting in:

set ANDROID\_PLATFORM\_TOOLS=“C://android-sdk-windows/platform-tools”  
set ANDROID\_TOOLS=“C://android-sdk-windows/tools”  
set path=%path%;%ANDROID\_PLATFORM\_TOOLS%;%ANDROID\_TOOLS%

Every time. So I do have the SDK on my computer. Though it resets when I close cmd prompt.

Anyways, is this screenshot what you wanted?

 ![121433-dd.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/e/d/0ed080fce232b67eadc1db290966eec0b7786e0f.png)

Thanks.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_48f2118e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_48f2118e](https://forums.unrealengine.com/u/anonymous_user_48f2118e)\
**Post date:** [January 10, 2017, 3:47am UTC](https://forums.unrealengine.com/t/adb-is-not-recognized-as-a-command/381157/4 "2017-01-10T03:47:30Z")

</div>

I suggest running through the entire [Android Quickstart][1] and completing all the steps (but use Java 8). From your screenshot I can see at least one step you have not completed.

[https://docs.unrealengine.com/latest/INT/Platforms/Android/GettingStarted/1/index.html](https://docs.unrealengine.com/latest/INT/Platforms/Android/GettingStarted/1/index.html)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [January 10, 2017, 4:05pm UTC](https://forums.unrealengine.com/t/adb-is-not-recognized-as-a-command/381157/5 "2017-01-10T16:05:27Z")

</div>

I went into my Command Prompt properties and changed the ‘start in’ to: C:\android-sdk-windows\platform-tools

Also, follow the documentation that provided, it will walk you through setting up the rest of your SDKConfig. You need to do the following (in order):

- C://android-sdk-windows
- C://android-ndk-r12b
- C://apache-ant-1.8.2
- C://jdk1.8.0\_77
- matchndk
- android-19

You cannot have the SDK set higher than the NDK, that causes all sorts of errors.

Let me know if this helps. 🙂

---

<div class="post-metadata">

**Author:** ![Keeper\_One](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/keeper_one/32/1171207_2.png) [@Keeper\_One](https://forums.unrealengine.com/u/Keeper_One)\
**Post date:** [August 23, 2025, 2:49am UTC](https://forums.unrealengine.com/t/adb-is-not-recognized-as-a-command/381157/6 "2025-08-23T02:49:46Z")

</div>

That you friend this helped. For any other travelers out there I had to go to my:

“ C:\Users\\AppData\Local\Android\Sdk\platform-tools “

CD here and you’ll be able to execute commands such as “adb devices” to check your headset connection!
