adb command not found in linux environment

前端 未结 21 1240
有刺的猬
有刺的猬 2020-12-07 19:07

While implementing the BluetoothChat application .apk inside G1 device, it always pops up a message:

$adb install -r /home/parveen/workspace/BluetoothChat/bi         


        
相关标签:
21条回答
  • 2020-12-07 19:09

    Ubuntu 18.04

    This worked for me:

    1. Find out and copy platform-tools path, in my case is '/home/daniel/Android/Sdk/platform-tools'
    2. Open bashrc nano ~/.bashrc
    3. Save platform-tools path export PATH="${PATH}:/home/daniel/Android/Sdk/platform-tools"
    4. Reset bash_profile source .bash_profile
    5. adb devices is now working
    0 讨论(0)
  • 2020-12-07 19:09

    In my case "adb" is located in "~/Android/Sdk/platform-tools/"

    the following command solved the problem:

    export PATH=$PATH:~/Android/Sdk/platform-tools/
    
    0 讨论(0)
  • 2020-12-07 19:11

    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
    
    0 讨论(0)
  • 2020-12-07 19:11

    For Fedora

    sudo dnf install adb 
    
    0 讨论(0)
  • 2020-12-07 19:14

    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

    0 讨论(0)
  • 2020-12-07 19:15

    The way I fix this problem is:

    1. create a link from adb file(drag 'adb' with holding alt then drop to any directory and select 'link here')
    2. use #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).

    0 讨论(0)
提交回复
热议问题