adb devices command shows nothing

21,966

Solution 1

I also had this problem two days ago and I searched and searched so I found that my ubuntu is 64-bit and adb is not match to ubuntu 64-bit so I used the below command in terminal:

sudo apt-get update
sudo apt-get install ia32-libs

and my problem was solved don't forget, you should export your java-version-sdk.

Solution 2

Try adding the following at the end of your .bashrc file (can found in your home directory):

export PATH=:/home/michiel/android-sdk-linux/platform-tools:$PATH 

Now use the adb command without sudo. This solved the problem for me.

HTH!

Solution 3

try to kill & start the adb server cmd

adb kill-server

adb start-server

Share:
21,966
Michielodc
Author by

Michielodc

Updated on August 22, 2020

Comments

  • Michielodc
    Michielodc over 3 years

    At the moment I'm busy with the Android SDK. I got it working, but when I entered $sudo adb shell. It gave sudo: adb: command not found. For this problem I checked this link: adb devices command not working But if I enter $sudo adb devices now. Noting happens.

    Not even *daemon not running. starting it now op port 5037 * and the rest. But it looks like this:

        michiel@ubuntu: ~$ sudo adb devices
        michiel@ubuntu: ~$
    

    So I can enter the next command. Someone knows how to fix that? It's the same with $sudo adb shell. Nothings comes up.

    When I enter adb devices without the sudo. I get the error:

    -bash: /usr/local/sbin/adb: No such file or directory. 
    

    But it's there!

    echo $PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/michiel/jdk1.6.0_29/bin:home/michiel/android-sdk-linux/tools:/home/michiel/android-sdk-linux/platform-tools
    

    Edit

    When I start Eclipse now, I get the next error: Failed to get the adb version: Cannot run program"/home/michiel/android-sdk-linux/platform-tools/adb":java.io.IOException:error=2, No such file or directory.

    SOLVED

    Last weekend I installed a clean install of Ubuntu. I downloaded the ia32.lib and openjdk instead of java jdk and install is manually. After some struggling I managed to connect the device and now I can see it. Thx for the help :)