首页 > 技术文章 > ubuntu14.04 下adb 报错 no such file + mac 安装adb

zhongyuan 2014-09-29 15:06 原文

 通常adb工具放在sdk的platform-tools文件夹下,主要用来管理移动设备的。

主要原因ubuntu14.04是64位的,android是32位的,so,adb需要运作在32位环境中,所以需要转换。

sudo apt-get install lib32z1
sudo apt-get install lib32stdc+

 

备注:

  sudo apt-get install android-tools-adb  //ubuntu下有这个安装源,不知道是否有用,未测试。 还有android-tools-fastboot等等

 

Mac下adb安装:

1、下载sdk,进入platform-tools

2、加入环境变量

  export PATH={$PATH}:/Users/liangzhongyuan/bin/sdk/platform-tools/   //"{}"花括号可以不要,蛋疼,到现在写法还有点不懂

3、使环境变量生效

  source .bash_profile

 

相关链接:

www.th7.cn/system/lin/201407/65050.shtml //就安装两个东东,有效

http://blog.sina.com.cn/s/blog_6268f10201016s64.html //mac下安装adb

http://jingyan.baidu.com/article/fcb5aff7f55c63edab4a7174.html //百度讲解adb,不错

推荐阅读