While implementing the BluetoothChat application .apk inside G1 device, it always pops up a message:
$adb install -r /home/parveen/workspace/BluetoothChat/bi
You need to add $ANDROID_SDK/platform-tools
to your PATH
, where $ANDROID_SDK
is wherever you installed the Android SDK.
I have same problem as you. finally as i know, in linux & mac OS, we use ./adb instead of adb
updating the $PATH did not work for me, therefore I added a symbolic link to adb to make it work, as follows:
ln -s <android-sdk-folder>/platform-tools/adb <android-sdk-folder>/tools/adb
creating a symbolic link was the solution for me either. However before working I had to grant access and execute rights to the created symbolic links.
I am not sure if it was @eaykin's answer or @crazymacleod's that worked for me, as I did both before finding the above mentioned solution.
Thanks!
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.
Make sure you installed sudo apt-get install android-tools-adb Now check sudo adb It will show help of adb
Now please kill/start adb use following commands -
sudo adb kill-server sudo adb start-server
Lastly, sudo adb devices
Hopefully this will work !!!