'Where is adb located when installing Unity and Android SDK for Mac?

I'm getting Android Build Failures and would like to locate adb to do some queries like adb devices but where is adb installed? I've already installed the Android SDK for Unity.



Solution 1:[1]

From @Programmer's answer, this line is no longer true:

You are responsible for downloading, installing and setting up Android SDK and then manually setting the paths in Unity.

Unity now allows and encourages you to install the Android SDK via their Unity Hub:

Use the Unity Hub to install Android Build Support and the required Android SDK & NDK tools: enter image description here

From the same page, I found adb.exe is located at: /c/Program Files/Unity/Hub/Editor/2019.2.1f1/Editor/Data/PlaybackEngines/AndroidPlayer/SDK/platform-tools/adb.exe

Solution 2:[2]

Updated answer for 2022:

C:\Program Files\Unity Editors\YOURVERSION\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools

Solution 3:[3]

For OSX users:

/Applications/Unity/Hub/Editor/2022.1.0b16/PlaybackEngines/AndroidPlayer/SDK/platform-tools/adb

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Richard Muthwill
Solution 3 michaK