6

I have install adb from terminal. But when I type "adb version" it's not found. Can anyone help me about this problem?

enter image description here

4
  • Please provide more information. How did you install it
    – Anurag
    Sep 12, 2021 at 11:27
  • What is the output of /usr/lib/android-sdk/platform-tools/adb
    – GAD3R
    Sep 12, 2021 at 11:34
  • i have just tried in my own pc again, cd into your platform-tools directory and then use the adb command like a script ./adb <options>.
    – CrazyTux
    Sep 12, 2021 at 12:10
  • I am installed follow this link medium.com/@petehouston/… But it's still not working for me.
    – Syah Hakam
    Sep 12, 2021 at 13:18

2 Answers 2

5

Use this command for adb installation:

apt install android-tools-adb
2
  • Installed successfully. But when I run the command "adb version", it displays the message "command adb not found"
    – Syah Hakam
    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.
    – Anurag
    Sep 12, 2021 at 17:54
2
  1. Download the Android SDK Platform Tools ZIP file for Linux from this link.
  2. Move the file to the location you want to store adb using the following command sudo mv filename.zip /wanted/location/.
  3. Extract the ZIP with unzip filename.zip command.
  4. Enter to platform-tools/ directory with cd platform-tools/
    • if you are not in the extracted directory use the full PATH cd /home/user/directory/platform-tools
  5. Now you can use the adb tool from inside the platform-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
1
  • Thanks it works for me! :)
    – Syah Hakam
    Sep 16, 2021 at 0:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .