adb command not found in linux environment

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

提交回复
热议问题