idea内存溢出 there's not enought memory to perform the requrested operation.解决方法

wylc123 1年前 ⋅ 1026 阅读

解决方案Help->Edit Custom VM Options
把下面的复制过去
# custom Android Studio VM options

#
# *DO NOT* modify this file directly. If there is a value that you would like to override,
# please add it to your user specific configuration file.
#
# See http://tools.android.com/tech-docs/configuration
#
-Xms512m
-Xmx2048m
-XX:MaxPermSize=2012m
-XX:ReservedCodeCacheSize=2040m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-da
-Djna.nosys=true
-Djna.boot.library.path=

-Djna.debug_load=true
-Djna.debug_load.jna=true
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:+HeapDumpOnOutOfMemoryError
-Dawt.useSystemAAFontSettings=lcd
更多内容请访问:IT源点

相关文章推荐

全部评论: 0

    我有话说: