Java.io.IOException: existing connection was forcibly closed by the remote host. Error installing APK

I try to install my project on my device, but I get the following error:

enter image description here

This is mistake:

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

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

+4
source share
1 answer
 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 *
+2
source

Source: https://habr.com/ru/post/1671361/


All Articles