

Go back to virtual memory and increase it's size to the one before, and that's it.īTW, I noticed in my case that simple hello world program was taking 20 sec to execute on my machine before fixing virtual memory problem. See the Android documentation for details. Does it run quickly ? If yes, problem is fixed. For this you need to have the Android Debug Bridge (ADB) installed on your host system. Then, once your system is up, try running adb version. If it's 4096mb make it 2048Mb ( both initial and maximum) It will ask to restart, so restart and get yourself a cup of coffee, because it will take a while. If it takes more than 5 seconds, then android studio times out waiting for an answer and throws up an error.Īnd go to control panel -> System->advance System settings-> Advanced tab->performance->settings->Advance->Virtual memory change How much it takes from you firing a command and actually gets an answer ?

This might be because of windows virtual memory problem.
