Android Studio: GC overhead limit exceeded -


error:execution failed task ':app:transformclasseswithdexfordebug'. > java.lang.outofmemoryerror: gc overhead limit exceeded 

tried:

dexoptions {     javamaxheapsize "4g" } 

that seems solution available online.

but still exceeds limit on 2nd build, unless kill studio task , restart, makes work 1st time.

definitely not many dependencies in build.gradle

build.grade

apply plugin: 'com.android.application'  android {     compilesdkversion 23     buildtoolsversion "23.0.2"      defaultconfig {         applicationid "com.xxxxx.android"         minsdkversion 16         targetsdkversion 23         versioncode 8         versionname "1.3"     }      dexoptions {         javamaxheapsize "4g"     }      buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }     } }  dependencies {     compile filetree(dir: 'libs', include: ['*.jar'])     compile 'com.android.support:appcompat-v7:23.1.1'     compile 'com.android.support:recyclerview-v7:23.1.1'     compile 'com.android.support:design:23.1.1'     compile 'com.jakewharton:butterknife:6.1.0'     compile 'com.squareup.okhttp:okhttp:2.3.0'     compile 'com.squareup.okhttp:okhttp-urlconnection:2.3.0'     compile 'com.squareup.retrofit:retrofit:1.9.0'     compile 'de.greenrobot:eventbus:2.4.0'     compile 'com.google.android.gms:play-services-location:+' } 

increase ide memory (file studio.vmoptions)

http://tools.android.com/tech-docs/configuration

my settings:

-xms256m -xmx3080m -xx:maxpermsize=350m -xx:reservedcodecachesize=225m -xx:+usecompressedoops 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -