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
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 !!!
updating the $PATH did not work for me, therefore I added a symbolic link to adb to make it work, as follows:
The way I fix this problem is:
#sudo cp adb /bin
(copy link from 1 to /bin)I've done this several times and it works 100%(tested on Ubuntu 12.04 32/64bit).
adb is in android-sdks/tools directory. You simply type this command:
adb logcat
.If you want to your stack traces in a text file use this command:
adb logcat > trace.txt.
Now your traces are copied into that file.If it is not working then go to android-sdks/platform-tools then put this command:
./adb logcat > trace.txt.
Hope it will helps to you.I had the same issue on my fresh Ubuntu 64 bit installation, and the path was set up correctly.
Thus,
which adb
would resolve correctly, but trying to run it would fail withadb: command not found
.The very helpful guys at #android-dev pointed me to the solution, namely that the 32 bit libraries hadn't been installed. On my previous computers, this had probably been pulled in as a dependency for another package.
On Ubuntu (probably other Debians as well), running
[sudo] apt-get install ia32-libs
I have just resolved the problem myself on mint(ubuntu). It seems that adb is a 32 bit executable at least according to readelf -h. for the program to work in 64-bit ubuntu or whatever installation, we must have 32-bit libraries inplace.
solved the problem with