CreateProcess error=8


(Antonio Carrasco) #1

When i try to compile my Android project “app” with two library projects as dependecies (slidingmenu and actionbarsherlock) and i often get this error when i invoke “gradle build” command:

Total time: 3.9 secs
Build step 'Invoke Gradle script' changed build result to SUCCESS
[Gradle] - Launching build.
[workspace] $ cmd.exe /C gradle.bat build -b app/build.gradle && exit %%ERRORLEVEL%%
:libraries:actionbarsherlock:packageReleaseAidl UP-TO-DATE
:libraries:actionbarsherlock:prepareReleaseDependencies
:libraries:actionbarsherlock:compileReleaseAidl UP-TO-DATE
:libraries:actionbarsherlock:generateReleaseBuildConfig UP-TO-DATE
:libraries:actionbarsherlock:mergeReleaseAssets UP-TO-DATE
:libraries:actionbarsherlock:compileReleaseRenderscript UP-TO-DATE
:libraries:actionbarsherlock:mergeReleaseResources UP-TO-DATE
:libraries:actionbarsherlock:processReleaseManifest UP-TO-DATE
:libraries:actionbarsherlock:processReleaseResources UP-TO-DATE
:libraries:actionbarsherlock:compileRelease UP-TO-DATE
:libraries:actionbarsherlock:processReleaseJavaRes UP-TO-DATE
:libraries:actionbarsherlock:packageReleaseJar UP-TO-DATE
:libraries:actionbarsherlock:packageReleaseRenderscript UP-TO-DATE
:libraries:actionbarsherlock:bundleRelease UP-TO-DATE
:libraries:slidingmenu:packageReleaseAidl UP-TO-DATE
:libraries:slidingmenu:prepareReleaseDependencies
:libraries:slidingmenu:compileReleaseAidl UP-TO-DATE
:libraries:slidingmenu:generateReleaseBuildConfig UP-TO-DATE
:libraries:slidingmenu:mergeReleaseAssets UP-TO-DATE
:libraries:slidingmenu:compileReleaseRenderscript UP-TO-DATE
:libraries:slidingmenu:mergeReleaseResources UP-TO-DATE
:libraries:slidingmenu:processReleaseManifest UP-TO-DATE
:libraries:slidingmenu:processReleaseResources UP-TO-DATE
:libraries:slidingmenu:compileRelease UP-TO-DATE
:libraries:slidingmenu:processReleaseJavaRes UP-TO-DATE
:libraries:slidingmenu:packageReleaseJar UP-TO-DATE
:libraries:slidingmenu:packageReleaseRenderscript UP-TO-DATE
:libraries:slidingmenu:bundleRelease UP-TO-DATE
:app:prepareWorkspaceLibrariesActionbarsherlockUnspecifiedLibrary
:app:prepareWorkspaceLibrariesSlidingmenuUnspecifiedLibrary
:app:prepareDebugDependencies
:app:compileDebugAidl
:app:generateDebugBuildConfig
:app:mergeDebugAssets
:app:compileDebugRenderscript
:app:mergeDebugResources FAILED
  FAILURE: Build failed with an exception.
  * What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> java.io.IOException: Cannot run program "C:\Program Files\Android\sdk\platform-tools\aapt.exe": CreateProcess error=8, Not enough storage is available to process this command

(houyuchen66) #2

I changed my settings.gradle file in the project root from include ‘:NightLamp’, ‘:actionbarsherlock’

to include ‘:NightLamp’ include ‘:actionbarsherlock’

and it seems to have fixed the issue for me… Weird, I know.