Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

adb command not found in linux environment

Tags:

android

adb

While implementing the BluetoothChat application .apk inside G1 device, it always pops up a message:

$adb install -r /home/parveen/workspace/BluetoothChat/bin/BluetoothChat.apk  -bash: adb: command not found 

I am not getting clearly why this error is popping up every time. Please help me.

Thanks in advance. Praween

like image 483
Praween k Avatar asked Mar 25 '10 16:03

Praween k


People also ask

How do I fix the adb command not found?

If the ADB command is not found, most likely you need to install the Android SDK Platform-Tools package to make it available in the command prompt. Also, the phone should be in USB debugging mode.


1 Answers

Updating the path as listed above in ~/.bashrc makes other bash commands stop working altogether.

the easiest way I found is to use what eaykin did but link it your /bin.

sudo ln -s /android/platform-tools/adb /bin/adb 

No restart is required just type following command :

adb devices 

To make sure it's working.

like image 68
crazymacleod Avatar answered Oct 06 '22 15:10

crazymacleod