adb command not found in linux environment

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

提交回复
热议问题