Java android 已建立的连接被主机中的软件中止
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22743890/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
android An established connection was aborted by the software in your host machine
提问by Zentorno
[2014-03-30 19:55:57 - ddmlib]An established connection was aborted by the software in your host machine java.io.IOException: An established connection was aborted by the software in your host machine at sun.nio.ch.SocketDispatcher.write0(Native Method) at sun.nio.ch.SocketDispatcher.write(Unknown Source) at sun.nio.ch.IOUtil.writeFromNativeBuffer(Unknown Source) at sun.nio.ch.IOUtil.write(Unknown Source) at sun.nio.ch.SocketChannelImpl.write(Unknown Source) at com.android.ddmlib.JdwpPacket.writeAndConsume(JdwpPacket.java:213) at com.android.ddmlib.Client.sendAndConsume(Client.java:642) at com.android.ddmlib.HandleHeap.sendREAQ(HandleHeap.java:348) at com.android.ddmlib.Client.requestAllocationStatus(Client.java:488) at com.android.ddmlib.DeviceMonitor.createClient(DeviceMonitor.java:835) at com.android.ddmlib.DeviceMonitor.openClient(DeviceMonitor.java:803) at com.android.ddmlib.DeviceMonitor.processIncomingJdwpData(DeviceMonitor.java:763) at com.android.ddmlib.DeviceMonitor.deviceClientMonitorLoop(DeviceMonitor.java:652) at com.android.ddmlib.DeviceMonitor.access0(DeviceMonitor.java:44) at com.android.ddmlib.DeviceMonitor.run(DeviceMonitor.java:580)
Hello, the problems occur after run the SQLite application (in Eclipse), I search a lot of similar questions, but none of the solution can solve my problem.
您好,运行SQLite应用程序(在Eclipse中)后出现问题,我搜索了很多类似的问题,但没有一个解决方案可以解决我的问题。
Can anyone help me to solve this problem? Thanks.
谁能帮我解决这个问题?谢谢。
The pictures of problem as below:
问题图片如下:
回答by Babu Prasad
There might be a chance that two eclipse instance are running on your machine. Try restarting eclipse and/or restart adb. Check below link for the similar issue.
可能有两个 eclipse 实例正在您的机器上运行。尝试重新启动 eclipse 和/或重新启动 adb。检查以下链接是否存在类似问题。
An established connection was aborted by the software in your host machine
回答by Aniket Thakur
- First make sure you just have one instance of Eclipse running (No other instance of Eclipse or Studio running that is pointing to your same android SDK).
- If above setup is correct try killing and restarting adb server by
adb kill-server
and thenadb start-server
- If even this does not work consider restarting your Eclipse or your machine.
- 首先确保您只有一个 Eclipse 实例正在运行(没有其他 Eclipse 或 Studio 实例指向您的同一个 android SDK)。
- 如果上述设置正确,请尝试杀死并重新启动 adb 服务器
adb kill-server
,然后adb start-server
- 如果这也不起作用,请考虑重新启动 Eclipse 或机器。