How to solve java.lang.OutOfMemoryError: GC overhead limit exceeded error in android studio

后端 未结 7 1016
执笔经年
执笔经年 2021-01-31 02:53

I am using android studio 1.0 RC for 64 bit linux.

When I run my application I am getting

\"java.lang.OutOfMemoryError: GC overhead limit          


        
7条回答
  •  野性不改
    2021-01-31 03:31

    I also have this problem my solution is : Just modify the gradle.properties in the root of your project :

    org.gradle.jvmargs=-XX\:MaxHeapSize\=512m -Xmx512m
    

    the default jvmargs is 256 when you compile a lot of channel apk then will cause this problem !

提交回复
热议问题