adb command not found in linux environment

前端 未结 21 1243
有刺的猬
有刺的猬 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:15

    For Ubuntu 20.04

    After trying many solution

    sudo apt install adb
    

    worked for me.

    After installing try command adb devices for starting daemon successfully then again use same command adb devices to get the list of devices

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

    adb is in android-sdks/tools directory. You simply type this command: adb logcat.

    If you want to your stack traces in a text file use this command: adb logcat > trace.txt. Now your traces are copied into that file.

    If it is not working then go to android-sdks/platform-tools then put this command: ./adb logcat > trace.txt. Hope it will helps to you.

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

    I had this problem when I was trying to connect my phone and trying to use adb. I did the following

    1. export PATH=$PATH{}:/path/to/android-sdk/tools:/path/to/android/platform-tools

    2. apt-get install ia32-libs

    3. Connected my phone in USB debug mode and In the terminal type lsusb to get a list of all usb devices. Noted the 9 character (xxxx:xxxx) ID to the left of my phone.

    4. sudo gedit /etc/udev/rules.d/99-android.rules

    5. Add [ SUBSYSTEM=="usb", ATTRS{idVendor}=="####:####", SYMLINK+="android_adb", MODE="0666" GROUP="plugdev" TEST=="/var/run/ConsoleKit/database", \ RUN+="udev-acl --action=$env{action} --device=$env{DEVNAME}" ] (whatever is in [...] )to the file and replace "####:####" with the number from step 3cop

    6. sudo service udev restart

    7. Restarted my System

    8. open terminal browse to adb directory and run ./adb devices

    And it shows my phone hence adb starts working without error.

    I hope it helps others

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

    I was getting this error also and Ubuntu suggested me to install it so I installed* it and this worked in my case.
    * - sudo apt-get install android-tools-adb

    Note:x64 architecture

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

    I found the solution to my problem. In my ~/.bashrc:

    export PATH=${PATH}:/path/to/android-sdk/tools

    However adb is not located in the android-sdk/tools/, rather in android-sdk/platform-tools/. So I added the following

    export PATH=${PATH}:/path/to/android-sdk/tools:/path/to/android-sdk/platform-tools

    And that solved the problem for me.

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

    sudo apt install adb

    in your pc adb not installed.

    Try this, working for me

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