安装好了Ubuntu 12.04,接着安装eclipse。eclipse安装下载后解压即可,注意还要安装jdk。
adt安装因为我是电信网络,安装时总也连接不上google的开发网络
https://dl-ssl.google.com/android/eclipse/,所以需要修改一下hosts文件:/etc/hosts,增加:
74.125.237.1 dl-ssl.google.com
然后可以顺利安装adt.
安装完adt和sdk后,连接上我的手机Lenovo A750,无法正确识别,是一堆????????????
lsusb
这是我电脑的显示:
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 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 001 Device 003: ID 062a:4101 Creative Labs
Bus 001 Device 004: ID 5986:0292 Acer, Inc
Bus 002 Device 003: ID 1c7a:0603 LighTuning Technology Inc.
Bus 002 Device 004: ID 0489:e00d Foxconn / Hon Hai
Bus 002 Device 005: ID 0bda:0139 Realtek Semiconductor Corp.
Bus 002 Device 008: ID 17ef:7435 Lenovo
最后一个就是我的手机了。
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
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 001 Device 003: ID 062a:4101 Creative Labs
Bus 001 Device 004: ID 5986:0292 Acer, Inc
Bus 002 Device 003: ID 1c7a:0603 LighTuning Technology Inc.
Bus 002 Device 004: ID 0489:e00d Foxconn / Hon Hai
Bus 002 Device 005: ID 0bda:0139 Realtek Semiconductor Corp.
Bus 002 Device 008: ID 17ef:7435 Lenovo
然后在终端运行
sudo gedit /etc/udev/rules.d/50-android.rules
并编辑其中加入行: SUBSYSTEM=="usb", SYSFS{"Lenovo"}=="17ef ", MODE="0666"
接着运行
sudo chmod 777 /etc/udev/rules.d/50-android.rules
sudo /etc/init.d/udev restart
最后进入android sdk的tools目录 platform-tools 运行
sudo ./adb kill-server
sudo ./adb devices
重新打开eclipse,OK,可以看到正常显示我的A750手机了。