5

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?

2

6 Answers 6

9

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

1
  • not necessarily, since it might be SDK related. see my comment above. Commented Dec 22, 2010 at 7:05
7

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.

0
4

Try:

sudo apt-get install android-tools-adb

Everything will be done for you .

2

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!

0

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

0

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.