/Applications/Android Studio.app/Contents/bin
打开文件studio.vmoptions
-Xms256m
-Xmx1280m
-XX:MaxPermSize=350m
-XX:ReservedCodeCacheSize=240m
-XX:+UseCompressedOops
改成
-Xms512m
-Xmx2560m
-XX:MaxPermSize=350m
-XX:ReservedCodeCacheSize=240m
-XX:+UseCompressedOops
解决