1、下載sdk,將其拷貝到home目錄下
2、打開.profile文件
$ gedit .profile
3、在文件最後加上如下代碼
if [ -d "$HOME/sdk" ] ; then
PATH="$HOME/sdk/tools:$HOME/sdk/platform-tools:$PATH"
fi
4、保存文件執行如下命令,是修改生效(或者重啓電腦)
$ source .profile
5、輸入adb,出現如下信息表示配置成功
Android Debug Bridge version 1.0.31
-a - directs adb to listen on all interfaces for a connection
-d - directs command to the only connected USB device
returns an error if more than one USB device is present.
..................................................