"Not enough storage available to process this command" - Gradle with Android plugin -
i having issue when trying build gradle android plugin. using win 7 64 bit 8gb ram , gradle 1.6 "most of time" when tried run "gradle build" cmd, ran error "createprocess error=8, not enough storage available process command". , location of error @ ":mergedebugresources". project directory follows:
hely | lib | actionbarsherlock | build.gradle (for android library)
hely | build.gradle (for main app)
the first build.gradle is
apply plugin: 'android-library' dependencies { compile filetree(dir: 'libs', include: '*.jar')} android { compilesdkversion 17 buildtoolsversion "17" defaultconfig { minsdkversion 7 targetsdkversion 16 } sourcesets { main { //default set } instrumenttest.setroot('tests') }}
and second build.gradle :
buildscript { repositories { mavencentral() } dependencies { classpath 'com.android.tools.build:gradle:0.4' }} apply plugin: 'android' dependencies { compile project(':lib:actionbarsherlock') compile filetree(dir: 'libs', include: '*.jar')} android { compilesdkversion 17 buildtoolsversion "17" defaultconfig { minsdkversion 7 targetsdkversion 16 } sourcesets { main { manifest.srcfile 'androidmanifest.xml' java.srcdirs = ['src'] resources.srcdirs = ['src'] aidl.srcdirs = ['src'] renderscript.srcdirs = ['src'] res.srcdirs = ['res'] assets.srcdirs = ['assets'] } instrumenttest.setroot('tests') }}
i tried increase irpstacksize did not help. weird thing build did not fail time, in fact, build "once per day".
any appreciated!
i changed settings.gradle file in project root from
include ':nightlamp', ':actionbarsherlock'
to
include ':nightlamp' include ':actionbarsherlock'
and seems have fixed issue me... weird, know.
Comments
Post a Comment