日期:2014-05-16  浏览次数:20416 次

linux下adb libncurses.so.5错误

http://stackoverflow.com/questions/10005907/eclipse-android-plugin-libncurses-so-5


真机调试时候,使用adb devices会出现不能识别出现:

song@song-Lenovo:~/下载$ adb devices
List of devices attached 
emulator-5554   device                    //eclipse的虚拟机
????????????    no permissions

同时在使用elipse调试的时候也不能选择真机,解决办法:


1、设置usb权限
$ lsusb
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 002: ID 17ef:6019 Lenovo 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 010: ID 0bb4:0cac HTC (High Tech Computer Corp.) 
Bus 002 Device 003: ID 0c45:62f0 Microdia 



列表中, Bus 001 Device 010: ID 0bb4:0cac HTC (High Tech Computer Corp.) . 这一行为手机的usb使用端口,记录一下,id为 0bb4:0cac  

$sudo vim /etc/udev/rules.d/70-android.rules 
加入以下内容: 
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0cac",MODE="0666"