2017-03-03 47 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

它的工作,非常感謝你。你能告訴我爲什麼會發生這種情況嗎? 如果再次發生該怎麼辦? 再次感謝。 –

相關問題