启动Android虚拟机的时候Eclipse中出现错误
2012-07-21 16:09
801 查看
回到学校宿舍,启动Android虚拟机的时候Eclipse中出现如下错误:
[2012-04-13 23:50:19 - ddms]Failed to reopen debug port for Selected Client to: 8700
[2012-04-13 23:50:20 - ddms]Address family not supported by protocol family: bind
java.net.SocketException: Address family not supported by protocol family: bind
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at com.android.ddmlib.MonitorThread.reopenDebugSelectedPort(MonitorThread.java:716)
at com.android.ddmlib.MonitorThread.run(MonitorThread.java:226)
[2012-04-13 23:50:56 - ddms]Can't bind to local 8600 for debugger
[2012-04-13 23:50:56 - ddms]Can't bind to local 8601 for debugger
[2012-04-13 23:50:56 - ddms]Can't bind to local 8602 for debugger
[2012-04-13 23:50:56 - ddms]Can't bind to local 8603 for debugger
[2012-04-13 23:50:56 - ddms]Can't bind to local 8604 for debugger
[2012-04-13 23:50:56 - ddms]Can't bind to local 8605 for debugger
[2012-04-13 23:50:56 - ddms]Can't bind to local 8606 for debugger
原来是我的hosts文件中指定了
::1 localhost
行头加#注释掉就没事了,具体原因不太清楚,只知道之前在非ipv6环境下是不会出错的,而在校园网的ipv6环境下就有这个问题。
如果不行,再在配置文件里加上
[2012-04-13 23:50:19 - ddms]Failed to reopen debug port for Selected Client to: 8700
[2012-04-13 23:50:20 - ddms]Address family not supported by protocol family: bind
java.net.SocketException: Address family not supported by protocol family: bind
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at com.android.ddmlib.MonitorThread.reopenDebugSelectedPort(MonitorThread.java:716)
at com.android.ddmlib.MonitorThread.run(MonitorThread.java:226)
[2012-04-13 23:50:56 - ddms]Can't bind to local 8600 for debugger
[2012-04-13 23:50:56 - ddms]Can't bind to local 8601 for debugger
[2012-04-13 23:50:56 - ddms]Can't bind to local 8602 for debugger
[2012-04-13 23:50:56 - ddms]Can't bind to local 8603 for debugger
[2012-04-13 23:50:56 - ddms]Can't bind to local 8604 for debugger
[2012-04-13 23:50:56 - ddms]Can't bind to local 8605 for debugger
[2012-04-13 23:50:56 - ddms]Can't bind to local 8606 for debugger
原来是我的hosts文件中指定了
::1 localhost
行头加#注释掉就没事了,具体原因不太清楚,只知道之前在非ipv6环境下是不会出错的,而在校园网的ipv6环境下就有这个问题。
如果不行,再在配置文件里加上
127.0.0.1 localhost 即可。 windows下面:hosts file can be found from c:\windows\system32\drivers\etc\hosts linux下面的话: /etc/hosts 不过这个我没试过
相关文章推荐
- 启动android程序和虚拟机时候出现如下错误的解决方法
- Eclipse在开发android应用的时候出现存储空间不足而无法安装apk的错误
- 我的电脑用eclipse开发android,每次只能启动一次android虚拟机,第二次点run的时候就永久的停留在27%上???
- android eclipse出现ADB无法启动或不能连接的错误解决
- Android Studio启动虚拟机的时候出现问题Instant Run Requires‘Tools | Android | Enable ADB integration’...
- 解决启动Eclipse后提示’Running android lint’错误的问题
- Android打包APK的时候出现conversion to dalvik format failed with error 1错误!
- Android:Eclipse 安装Genymotion插件的时候出现 There are no categorized items
- tomcat在eclipse中使用,启动出现错误
- eclipse下启动tomcat出现Setting property 'source' to 'org.eclipse.jst.jee.server: '错误的解决办法
- 启动eclipse ,出现错误 Java was started but returned exit code=13
- Android 启动模拟器是出现“Failed to allocate memory: 8”错误,模拟器无法启动
- 在启动Oracle服务的时候出现:错误1067 进程意外终止
- android窗体动画:activity启动从底部向上滑动出现,关闭的时候从顶部向下滑动消失的动画实现
- eclipse 安装完Maven插件之后启动时候弹出错误:'Updating indexes' has encountered a problem.
- 启动eclipse出现错误Java was started but returned exit =一个数字
- 启动eclipse的时候出现failed to load the jni shared library 解决方案
- eclipse下启动tomcat出现Setting property 'source' to 'org.eclipse.jst.jee.server: '错误的解决办法
- eclipse运行Android程序出现Unsupported major.minor version 52.0错误
- Eclipse 开发Android 出现 aapt.exe 应用程序错误,该内存不能为“read”