Dev.Sinto
Dev.Sinto

Reputation: 6852

Cannot run adb from terminal in Ubuntu

I am new to Ubuntu. I cannot run adb in my terminal. When I try to run adb in the terminal I get the following error:

No command 'adb' found

At the same time I can run my Android application in the emulator. What can be the problem?

Upvotes: 5

Views: 9890

Answers (6)

Bharat Jain
Bharat Jain

Reputation: 177

Try:

sudo apt-get install android-tools-adb

Everything will be done for you .

Upvotes: 4

ScottFree
ScottFree

Reputation: 632

The adb application is 32 bit, trying to run it on a 64 bit machine wont work until you have installed the 32 bit libraries, you can grab them by typing:

sudo apt-get install ia32-libs

Quite a big download but should get you up and running!

Upvotes: 2

Pavan Pyati
Pavan Pyati

Reputation: 960

Drag and drop adb file to terminal. You can execute one command at a times, if you want next command to be executed

Upvotes: 0

Souranil Sen
Souranil Sen

Reputation: 21

Even if I am in the platform-tools where the adb file is there I am giving ./adb still its telling command not found .

Upvotes: 0

William Niu
William Niu

Reputation: 15853

That means adb is not in the PATH.

If adb is in the current directory, try ./adb instead.

the following command will show you the PATH: echo $PATH

Upvotes: 9

darioo
darioo

Reputation: 47183

The command adb isn't on your path.

If you installed Android SDK manually, go to SDK install directory, then platform-tools. adb should be there.

If you didn't install the SDK at all, well, there's your problem.

Upvotes: 7

Related Questions