java.io.IOException:安装APK时远程主机强制关闭现有连接

sto*_*erd 5 android apk

我正在尝试在我的设备上安装我的项目,但是我收到以下错误:

在此输入图像描述

这是错误:

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

请帮助我,也可以有人告诉我关于java文件中的R.

Sri*_*sam 1

 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 *
Run Code Online (Sandbox Code Playgroud)