'Android Studio / Kotlin: cannot run app on an physical device ("Couldn't terminate the existing process for...")
I am new to Kotlin, and currently building my very first app (I am not experienced at all on the topic).
I successfully managed to customize my android phone and my android studio and achieved to launch the app I am currently working on a few times.
However, I now run into an error when trying to launch my app on my physical device. I get the following message: "Couldn't terminate the existing process for com.example.diceroller.", as if it was still running. The icons to launch/stop the app also seem to be in a state where the app is running on the device.
I have tried the following, without result:
- close all running apps on the phone
- reboot the phone
- restart Android Studio
- deactivate/reactivate USB debugging on the phone
The app does work fine on a virtual device.
Could you please give me any lead to follow to try and be able to test my app on a physical device? Thanks a lot!
Solution 1:[1]
Try to kill the daemon, open your terminal and write this
adb kill-server
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Muhammad Rio |

