2 Replies Latest reply on Oct 26, 2016 10:53 PM by andrewn94587088

    Android build fails Execution failed for task ':processReleaseResources'.

    andrewn94587088 Level 1

      Hi,

       

      I'm having trouble building the Android version for app id 1750010, using cli-6.3.0 (4.2.0 / 5.2.1 / 4.4.1). Is there a way to get more debug information?

       

      When building the app from a different branch (app id 2097672) everything works fine. The branches are basically identical, they vary in config data.

       

      The log shows the following information:

       

      Build Date: 2016-10-26 16:19:17 +0000
      Configuration on demand is an incubating feature.
      Incremental java compilation is an incubating feature.
      :preBuild UP-TO-DATE
      :preReleaseBuild UP-TO-DATE
      :checkReleaseManifest
      :preDebugBuild UP-TO-DATE
      :CordovaLib:preBuild UP-TO-DATE
      :CordovaLib:preDebugBuild UP-TO-DATE
      :CordovaLib:compileDebugNdk UP-TO-DATE
      :CordovaLib:compileLint
      :CordovaLib:copyDebugLint UP-TO-DATE
      :CordovaLib:mergeDebugProguardFiles
      :CordovaLib:packageDebugRenderscript UP-TO-DATE
      :CordovaLib:checkDebugManifest
      :CordovaLib:prepareDebugDependencies
      :CordovaLib:compileDebugRenderscript
      :CordovaLib:generateDebugResValues
      :CordovaLib:generateDebugResources
      :CordovaLib:packageDebugResources
      :CordovaLib:compileDebugAidl
      :CordovaLib:generateDebugBuildConfig
      :CordovaLib:mergeDebugShaders
      :CordovaLib:compileDebugShaders
      :CordovaLib:generateDebugAssets
      :CordovaLib:mergeDebugAssets
      :CordovaLib:processDebugManifest
      :CordovaLib:processDebugResources
      :CordovaLib:generateDebugSources
      :CordovaLib:incrementalDebugJavaCompilationSafeguard
      :CordovaLib:compileDebugJavaWithJavac
      :CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
      Note: Some input files use or override a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.
      :CordovaLib:processDebugJavaRes UP-TO-DATE
      :CordovaLib:transformResourcesWithMergeJavaResForDebug
      :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug
      :CordovaLib:mergeDebugJniLibFolders
      :CordovaLib:transformNative_libsWithMergeJniLibsForDebug
      :CordovaLib:transformNative_libsWithSyncJniLibsForDebug
      :CordovaLib:bundleDebug
      :CordovaLib:preReleaseBuild UP-TO-DATE
      :CordovaLib:compileReleaseNdk UP-TO-DATE
      :CordovaLib:copyReleaseLint UP-TO-DATE
      :CordovaLib:mergeReleaseProguardFiles
      :CordovaLib:packageReleaseRenderscript UP-TO-DATE
      :CordovaLib:checkReleaseManifest
      :CordovaLib:prepareReleaseDependencies
      :CordovaLib:compileReleaseRenderscript
      :CordovaLib:generateReleaseResValues
      :CordovaLib:generateReleaseResources
      :CordovaLib:packageReleaseResources
      :CordovaLib:compileReleaseAidl
      :CordovaLib:generateReleaseBuildConfig
      :CordovaLib:mergeReleaseShaders
      :CordovaLib:compileReleaseShaders
      :CordovaLib:generateReleaseAssets
      :CordovaLib:mergeReleaseAssets
      :CordovaLib:processReleaseManifest
      :CordovaLib:processReleaseResources
      :CordovaLib:generateReleaseSources
      :CordovaLib:incrementalReleaseJavaCompilationSafeguard
      :CordovaLib:compileReleaseJavaWithJavac
      :CordovaLib:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
      Note: Some input files use or override a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.
      :CordovaLib:processReleaseJavaRes UP-TO-DATE
      :CordovaLib:transformResourcesWithMergeJavaResForRelease
      :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease
      :CordovaLib:mergeReleaseJniLibFolders
      :CordovaLib:transformNative_libsWithMergeJniLibsForRelease
      :CordovaLib:transformNative_libsWithSyncJniLibsForRelease
      :CordovaLib:bundleRelease
      :prepareComAndroidSupportCardviewV72340Library
      :prepareComAndroidSupportCustomtabs2340Library
      :prepareComAndroidSupportSupportV132340Library
      :prepareComAndroidSupportSupportV42340Library
      :prepareComFacebookAndroidFacebookAndroidSdk4141Library
      :prepareComGoogleAndroidGmsPlayServicesBase940Library
      :prepareComGoogleAndroidGmsPlayServicesBasement940Library
      :prepareComGoogleAndroidGmsPlayServicesGcm940Library
      :prepareComGoogleAndroidGmsPlayServicesIid940Library
      :prepareComGoogleAndroidGmsPlayServicesTasks940Library
      :prepareProjectCordovaLibUnspecifiedReleaseLibrary
      :prepareReleaseDependencies
      :compileReleaseAidl
      :compileReleaseRenderscript
      :generateReleaseBuildConfig
      :mergeReleaseShaders
      :compileReleaseShaders
      :generateReleaseAssets
      :mergeReleaseAssets
      :generateReleaseResValues
      :generateReleaseResources
      :mergeReleaseResources
      :processReleaseManifest
      :processReleaseResources FAILED
      
      BUILD FAILED
      
      Total time: 4.982 secs
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Execution failed for task ':processReleaseResources'.
      > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/android-sdk/build-tools/24.0.1/aapt'' finished with non-zero exit value 1
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
      Error: /project/gradlew: Command failed with exit code 1 Error output:
      Note: Some input files use or override a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.
      Note: Some input files use or override a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Execution failed for task ':processReleaseResources'.
      > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/android-sdk/build-tools/24.0.1/aapt'' finished with non-zero exit value 1
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
        at ChildProcess.whenDone (/project/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
        at emitTwo (events.js:106:13)
        at ChildProcess.emit (events.js:191:7)
        at maybeClose (internal/child_process.js:877:16)
        at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
      

       

      Thank you!