I had a problem while trying to create using Gradle with an Android plugin. I use Win 7 64 bit with 8 GB of RAM and Gradle 1.6, but "most of the time", when I tried to run "gradle build" from cmd, I encountered this error " Error CreateProcess = 8, There is not enough memory to process this command . And the location of this error is on " : mergeDebugResources ". My project directory is as follows:
Hello! lib | actionbarsherlock | build.gradle (for android library)
Hello! build.gradle (for the main application)
first build.gradle -
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 up } instrumentTest.setRoot('tests') }}
And the second build.gradle looks like this:
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 to increase IRPStackSize, but that did not help. It is strange that the assembly did not fail all the time, in fact I could successfully build βonce a dayβ.
Any help would be greatly appreciated!
source share