Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

android

apk

I am trying to install my project on my device but I am getting the following error:

enter image description here

This is the error:

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

Please help me with this and also could anyone tell me about R in java file

like image 329
stodgy.nerd Avatar asked Nov 08 '22 01:11

stodgy.nerd


1 Answers

 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 *
like image 191
Srinivas Keerthiprakasam Avatar answered Nov 15 '22 07:11

Srinivas Keerthiprakasam