android adb install

环境:centos6.8

需要安装

root@localhost ~]# yum install libstdc++.so.6

1.下载安装包;

http://pan.baidu.com/s/1skg0suL  验证码:e1f92.

2.解压;

[root@localhost ~]# unzip adt-bundle-linux-x86_64-20131030.zip
[root@localhost ~]# mkdir /opt/android/sdk -p
[root@localhost ~]# mv android-sdk-linux /opt/android/sdk/sdk-linux

3.设置环境变量;

[root@localhost ~]# vi /etc/bashrc
export PATH=$PATH{}:/opt/android/sdk/adt-linux/sdk/platform-tools://opt/android/sdk/adt-linux/sdk/tools
[root@localhost ~]# source /etc/bashrc

4.重启;

[root@localhost sdk]# adb kill-server
[root@localhost sdk]# adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
YT910VQY4Y unauthorized

unauthorized 这个是因为手机没有打开调试模式造成的;

 
上一篇:【原创】基于Docker的CaaS容器云平台架构设计及市场分析


下一篇:Vue生命周期 钩子函数和组件传值