adb is included in the Android SDK Platform-Tools package. You can download this package with the SDK Manager, which installs it at android_sdk /platform-tools/ .
Open a command window in the folder by holding shift and right-clicking in an empty spot in the folder and selecting "Open command prompt/PowerShell here" in the menu. Then you can start using ADB — connect your phone and try . ADB devices to see if it's working. A list with attached devices should show up.
Assuming you have Android Studio installed, a quick way to locate it via the app is to again go to File -> Settings, then type “SDK” in the search bar. The “Android SDK” menu will show you where your SDK is installed, which will be the directory that should contain platform-tools.
It is located in the AppData
hidden folder
C:\Users\[user]\AppData\Local\Android\sdk\platform-tools
From l33t's comment below you may use the following shortcut:
%LOCALAPPDATA%\Android\sdk\platform-tools
You can find it here:
%USERPROFILE%\AppData\Local\Android\sdk\platform-tools
To save yourself the hassle in the future, add it to your path:
PATH
.Press configure or if project opens go to settings
lookup Android SDK shown in picture
You can see your Android SDK Location. Open file in file explorer to that location.
\platform-tools\adb.exe
full path on my pc is :
C:\Users\Daniel\AppData\Local\Android\Sdk\platform-tools
If you are not able to find platform-tools folder, please open SDK Manager and install "Android SDK Platform-Tools" from SDK Tools tab.
adb.exe
to environment variables for global access
%LOCALAPPDATA%\Android\sdk\platform-tools
Copy the path to the folder from the address bar
Then, search for Environment Variables
on the windows search bar
Click on Environment Variables
Under System Variables
select the Path
environment variable & click on Edit
If the Path
environment variable does not exist, create a new one by clicking on New
A new window appears - in the new window, click on New
Then paste the path to adb.exe
Click OK
(thrice!)
You can now access the commands like adb
, sqlite3
etc globally from Windows
Open a cmd
window and type where adb.exe
For me
D:\android-sdk_r24.4.1-windows\android-sdk-windows\platform-tools\adb.exe
I have taken snapshot of adb.exe directory. I hope it helps you best,
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With