2017-03-03 74 views
4

我想我的设备上安装我的项目,但我收到以下错误现有的连接被强行远程主机关闭时出错这是错误:产生java.io.IOException:</p> <p><a href="https://i.stack.imgur.com/1KhqU.png" rel="nofollow noreferrer">enter image description here</a></p> <p>:安装APK

java.io.IOException: An existing connection was forcibly closed by the remote host Error while Installing APK

请帮我这一点,也可能有人告诉我关于R中的Java文件

+0

在Android Studio中转到文件菜单之所以选择无效重启/缓存选项 –

回答

2
run->cmd->your_android_sdk_path->platform-tools> 
Then write the below commands. 

adb kill-server - To kill the server forcefully 

adb start-server - To start the server 

UPDATED: 

F:\android-sdk-windows latest\platform-tools>adb kill-server 

F:\android-sdk-windows latest\platform-tools>adb start-server 
* daemon not running. starting it now on port 5037 * 
* daemon started successfully * 
+0

它没有工作 –

+0

在Android Studio中转到文件菜单之所以选择无效重启/缓存选项 –

+0

它的工作,非常感谢你。你能告诉我为什么会发生这种情况吗? 如果再次发生该怎么办? 再次感谢。 –

相关问题