I have install adb from terminal. But when I type "adb version" it's not found. Can anyone help me about this problem?
2 Answers
Use this command for adb installation:
apt install android-tools-adb
-
Installed successfully. But when I run the command "adb version", it displays the message "command adb not found" Sep 12, 2021 at 13:24
-
This should work. Verify that your are not having any other adb package installed before installing this. Do
apt autoremove
. Reboot your system after install.– AnuragSep 12, 2021 at 17:54
- Download the Android SDK Platform Tools ZIP file for Linux from this link.
- Move the file to the location you want to store
adb
using the following commandsudo mv filename.zip /wanted/location/.
- Extract the ZIP with
unzip filename.zip
command. - Enter to
platform-tools/
directory withcd platform-tools/
- if you are not in the extracted directory use the full PATH
cd /home/user/directory/platform-tools
- if you are not in the extracted directory use the full PATH
- Now you can use the
adb
tool from inside theplatform-tools
directory using./adb [options]
for example./adb version
.
- This solution is given from XDA-DEVELOPERS forum.
- For more information you can look in the original manual on this link
/usr/lib/android-sdk/platform-tools/adb
cd
into yourplatform-tools
directory and then use theadb
command like a script./adb <options>
.