发布网友 发布时间:2022-04-25 12:36
共3个回答
热心网友 时间:2023-12-14 04:54
修改Mac下Android Studio的内存初始值方法:
1. 把 -Xmx 参数调大即可,如图:
vim /Users/youraccount/Library/Preferences/AndroidStudio1.5/studio.vmoptions
效果:
勾选内存显示选项
热心网友 时间:2023-12-14 04:54
找到文件/Applications/Android Studio.app/Contents/bin/studio.vmoptions
然后修改下面的配置,重启Android Studio即可。
1 #
2 # *DO NOT* modify this file directly. If there is a value that you would like to override,
3 # please add it to your user specific configuration file.
4 #
5 # See tools.android.com/tech-docs/configuration。前面加上http://
6 #
7 -Xms256m
8 -Xmx1280m
9 -XX:MaxPermSize=350m
10 -XX:ReservedCodeCacheSize=240m
11 -XX:+UseCompressedOops
要想在Android Studio上实时显示这个内存使用情况呢,可以Setting->Appearance->Window Options->Show Memory indicator勾选上。
热心网友 时间:2023-12-14 04:55
修改步骤:
1、找到文件/Applications/Android Studio.app/Contents/bin/studio.vmoptions
2、修改下面的配置
1 #
2 # *DO NOT* modify this file directly. If there is a value that you would like to override,
3 # please add it to your user specific configuration file.
4 #
5 # See
6 #
7 -Xms256m
8 -Xmx1280m
9 -XX:MaxPermSize=350m
10 -XX:ReservedCodeCacheSize=240m
11 -XX:+UseCompressedOops
3、重启Android Studio即可。