How to get Android ADB to work in Windows PowerShell.

Getting ADB (Android Debugging Bridge) installed on Windows is not as easy or as straight forward as in Linux. In most Linux distros, you could install it easily from the terminal using its package manager. Windows doesn’t come with any package manager pre-installed. This is where Chocolatey comes in.

Chocolatey is a package manager for windows. You can find more info about it in: https://chocolatey.org

Go over to https://chocolatey.org/install and follow the instructions there to install chocolatey. I have installed it with PowerShell.  Remember to launch PowerShell as administrator

Once installed, like searching for a package with a linux package manager, type:

choco search adb

Image

Command output will look something like this :Image

Here we see the adb package is available. To install it, simply type the command and press enter : choco install adb

If you get an error that looks like this:

Image

Close PowerShell and open it again as an administrator. Type “choco install adb” again, press enter, and this time the install should work without errors.

Once installed, adb will work like a normal command in PowerShell.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s