Below error encountered whenever I tried to run application into emulator or device.
Installation did not succeed.
The application could not be installed.
List of apks:
[0] 'E:\ParentDirectory\Projests\WorkSpace\app\build\outputs\apk\debug\app-debug.apk'
Installation failed due to: 'Connection refused: connect'
Retry
Failed to launch an application on all devices
I tried to clean and re-build the project even tried to clear cache and restart the Android studio but no luck.