Where is adb.exe in windows 10 located?
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
To use it in PowerShell you can do:
$env: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:
- Click 'Start'.
- Type 'Edit environment variables for your account', and click it.
- Double click
PATH
. - Click 'New'.
- Paste that path in.
- Click 'OK', click 'OK', and restart any command prompts you have open.
- Open android studio
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.
- Add this to end or direct through to this
\platform-tools\adb.exe
full path on my pc is :
C:\Users\Daniel\AppData\Local\Android\Sdk\platform-tools
Steps to add adb.exe
to environment variables for global access
- Run the following on Windows Run (Win + R)
%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 thePath
environment variable & click onEdit
-
If the
Path
environment variable does not exist, create a new one by clicking onNew
-
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
If you are not able to find platform-tools folder, please open SDK Manager and install "Android SDK Platform-Tools" from SDK Tools tab.