I get an error like this:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
How can I fix it?
See the top answer on SO here: http://stackoverflow.com/questions/16712413/an-error-when-creating-new-project-in-android-studio