This may be due to a problem with Windows virtual memory. Try running adb from the command line. something like adb version BTW, platform tools will be located in c:\Users\<your userid>\AppData\Local\Android\sdk\platform-tools
How much does it take from you, who shoots the team, and actually gets the answer? if it takes more than 5 seconds, then the android studio plays out waiting for an answer and gives an error.
How to fix? close your entire program (process?) and go to the control panel → System-> system presets-> Advanced tab → performance → settings → preliminary → change virtual memory
Try reducing the size of virtual memory. Fr If he makes 4096Mb its 2048Mb (both initial and maximum), he will ask you to restart, so reboot and have a cup of coffee because it will take some time. Then, as soon as your system gets up, try running the adb version. Does he work fast? If yes, the problem is fixed. Go back to the virtual memory and increase its size before it was before, and what it is.
By the way, I noticed in my case that the simple hello world program took 20 seconds to execute on my machine until the virtual memory problem was fixed.
prashant2400 Dec 14 '16 at 21:19 2016-12-14 21:19
source share