When I opened android studio today, it showed me the following errors:
Got this problem recently with Android Studio 1.3 and 1.4.2 (beta). This was caused by an OutOfMemoryError in the Java heap.
OutOfMemoryError
I solved it by increasing the -Xmx and -XX:MaxPermSize values in the studio.vmoptions file
-Xmx
-XX:MaxPermSize
studio.vmoptions