Step (1). Add this (
or where ever is your “platform-tools” folder located ) path to environment variables path.
Step (2). Open cmd and run these commands :
adb kill-server && adb start-server
and press enter.
This will kill existing broken server running if any, then re-start with the default port assigned.
This will help you to install apk in device if you are struggling to install apk.
I use this often while installing apk by running “ionic cordova run android” as this sometimes freezes and do not installs apk properly.
Hope this will help you. 🙂