Android Studio:java.io.IOException:远程主机强行关闭了现有连接 [英] Android Studio: java.io.IOException: An existing connection was forcibly closed by the remote host

查看:65
本文介绍了Android Studio:java.io.IOException:远程主机强行关闭了现有连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我阅读了很多帖子来解决这个问题.没有一个对我有用.

I read many posts to fix this problem. None worked for me.

错误:

Target device: lenovo-lenovo_a6000-89a70dc9
Installing APK: C:\Users\Nikhil\AndroidStudioProjects\ProfitKey\app\build\outputs\apk\app-debug.apk
Uploading file to: /data/local/tmp/helix.profitkey.hotelapp
java.io.IOException: An existing connection was forcibly closed by the remote host

我在下面试过

  1. 杀死并启动 adb
  2. 无效并重启android studio
  3. 删除了任务栏中的 adb 进程
  4. 重启设备和电脑
  5. 重新启动工作室,清理并重建
  6. 任务栏只有一个 adb.exe
  7. 从设备管理器更新驱动程序

它正在工作的另一个设备.但以前这两款设备对我来说都很好.

Another device it is working. But previously both device worked fine for me.

Target device: motorola-xt1022-ZX1B33PRVP
Installing APK: C:\Users\Nikhil\AndroidStudioProjects\ProfitKey\app\build\outputs\apk\app-debug.apk
Uploading file to: /data/local/tmp/helix.profitkey.hotelapp
Installing helix.profitkey.hotelapp
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/helix.profitkey.hotelapp"
pkg: /data/local/tmp/helix.profitkey.hotelapp
Success

我尝试了两台联想 A6000.一个正在工作,另一个没有工作.然后,Moto 正在工作,而 samsung Galaxy 不工作.每当我杀死并启动 adb 时.任务管理器首先创建两个 adb,几秒钟后一个隐藏.这是一个问题吗?但仍有一些设备工作正常.

I tried with two lenovo A6000. One is working and another is not working. Then, Moto is working and samsung galaxy is not working. Whenever I am killing and starting the adb. The task manager creating two adb first and after few seconds one was hiding. Was this a problem? But still some devices working fine.

adb 在通过命令或任务管理器(如果 android studio 打开)杀死后自动启动.

adb starts automatically after killing by command or from the task manager if android studio is opened.

推荐答案

现在适用于所有设备.只是我在PC上卸载了手机的驱动程序并更改了与该设备连接的端口.我认为我的 PC 中的端口有问题.经过长时间的研究,它被一个小东西修复了.这可能对某人有帮助.

Now working for all the devices. Just I uninstalled the driver of mobile in PC and changed the port to connect with that device. I think some problem with the port in my PC. After long research it fixed by a small thing. It might be helpful to someone.

这篇关于Android Studio:java.io.IOException:远程主机强行关闭了现有连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆