Android开发环境在Linux上无法连接的问题

按照文档在Linux上安装了Android开发环境,并且安装了Eclipse插件,但是在启动时却出现了下面的问题:

[2011-03-30 17:45:38 - ddms]'adb start-server' succeeded
[2011-03-30 17:45:38 - adb]* daemon not running. starting it now on port 5037 *
[2011-03-30 17:45:38 - adb]* daemon started successfully *
[2011-03-30 17:45:38 - DeviceMonitor]Opening adb connection
[2011-03-30 17:45:38 - DeviceMonitor]Connecting to adb for Device List Monitoring...
[2011-03-30 17:45:38 - DeviceMonitor]Connection attempts: 1
[2011-03-30 17:45:39 - DeviceMonitor]Opening adb connection
[2011-03-30 17:45:39 - DeviceMonitor]Connecting to adb for Device List Monitoring...
[2011-03-30 17:45:39 - DeviceMonitor]Connection attempts: 2
[2011-03-30 17:45:40 - DeviceMonitor]Opening adb connection
[2011-03-30 17:45:40 - DeviceMonitor]Connecting to adb for Device List Monitoring...
[2011-03-30 17:45:40 - DeviceMonitor]Connection attempts: 3

Eclipse始终无法连接到Android开发环境,但如果手动将打开模拟器,用命令行安装编译出的apk文件,却一切正常。

後来在Google的bug管理网站上发现了下面的内容

http://code.google.com/p/android/issues/detail?id=3025

确认了此问题是Android的开发环境的一个bug,按照回复中的解决方法,运行

sudo sysctl -w net.ipv6.bindv6only=0

问题就解决了