Step (1)
Add this (or where ever is your “platform-tools” folder located ) path to environment variables path.
C:\Users\mm-admin\AppData\Local\Android\sdk\platform-tools
Step (2)
Open cmd and run these commands :
adb kill-server && adb start-server
and press enter.
Summery
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. 🙂
Check out other awesome blogs.
Author Profile
- Tech Lover , Open Src Dev , Dotnet Core, Ionic, Xamarin, Node, Angular2, Python, Opencv, AI, ML, Robotics, SignalR, Iot, Love Music, Cooking, Girls, Innovation.