adb command not found in linux environment

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

    You need to add $ANDROID_SDK/platform-tools to your PATH, where $ANDROID_SDK is wherever you installed the Android SDK.

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

    I have same problem as you. finally as i know, in linux & mac OS, we use ./adb instead of adb

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

    updating the $PATH did not work for me, therefore I added a symbolic link to adb to make it work, as follows:

    ln -s <android-sdk-folder>/platform-tools/adb <android-sdk-folder>/tools/adb
    
    0 讨论(0)
  • 2020-12-07 19:25

    creating a symbolic link was the solution for me either. However before working I had to grant access and execute rights to the created symbolic links.

    I am not sure if it was @eaykin's answer or @crazymacleod's that worked for me, as I did both before finding the above mentioned solution.

    Thanks!

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

    Updating the path as listed above in ~/.bashrc makes other bash commands stop working altogether.

    the easiest way I found is to use what eaykin did but link it your /bin.

    sudo ln -s /android/platform-tools/adb /bin/adb
    

    No restart is required just type following command :

    adb devices
    

    To make sure it's working.

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

    Make sure you installed sudo apt-get install android-tools-adb Now check sudo adb It will show help of adb

    Now please kill/start adb use following commands -

    sudo adb kill-server sudo adb start-server

    Lastly, sudo adb devices

    Hopefully this will work !!!

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