While implementing the BluetoothChat application .apk inside G1 device, it always pops up a message:
$adb install -r /home/parveen/workspace/BluetoothChat/bi
Ubuntu 18.04
This worked for me:
'/home/daniel/Android/Sdk/platform-tools'
nano ~/.bashrc
export PATH="${PATH}:/home/daniel/Android/Sdk/platform-tools"
source .bash_profile
adb devices
is now workingIn my case "adb" is located in "~/Android/Sdk/platform-tools/"
the following command solved the problem:
export PATH=$PATH:~/Android/Sdk/platform-tools/
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
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
For Fedora
sudo dnf install adb
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 with adb: 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
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).