三星Galaxy手机上条形码扫描的问题
Aptana Studio 3正式版发布了

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

Iacob posted @ 2011年3月30日 18:07 in 未分类 with tags android eclipse , 2937 阅读

按照文档在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

问题就解决了

Avatar_small
ekhan.in 说:
2023年4月16日 18:11

Our team comprises of professional writers & citizen journalists ekhan.in with diverse range of interest in Journalism who are passionate about publishing the Education Updates with transparency in general public interest.ekhan is a initiative of professional writers who have come together for dedicated news coverage of latest happenings around the country (India). Our team comprises of professional writers & citizen journalists with diverse range of interest in Journalism who are passionate about publishing the Education Updates with transparency in general public interest.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter