BUILD FAILED | Execution failed for task ':mergeArmv7DebugResources'.



  • I’ve been trying to build my code for a couple of days, though it started to make that mistake in Build Log. I have no idea what it is, can anyone help me decipher why this happens and how can I fix it?
    Thank you for the attention.

    Fetch queue Info...
    Start building 5988ae6c803451a272ee4045
    Setup working directories...
    Download project archive...
    Extract project archive...
    Fetch project info...
    Webview:crosswalk
    Arch:arm
    cordova version: 6.2.0
    
    
    - preBuild -
    buildForAndroid
    
    - Cordova create -
    $ /data/build-server/cordova/6.2.0/bin/cordova create /tmp/monaca/5988ae6c803451a272ee4045/project
    Creating a new cordova project.
    
    
    - Copy .monaca-res directory -
    
    - Copy config.xml -
    
    - Cordova platform add -
    $ /data/build-server/cordova/6.2.0/bin/cordova platform list
    $ /data/build-server/cordova/6.2.0/bin/cordova platform add /data/build-server/cordova/platforms/android/5.1.1
    Adding android project...
    Creating Cordova project for the Android platform:
        Path: platforms/android
        Package: com.brasilrad.testecontrole
        Name: TestesBrasilrad
        Activity: MainActivity
        Android target: android-23
    Android project created with cordova-android@5.1.1
    
    
    - Copy external plugin setting files -
    
    - Copy www files -
    
    - Cordova plugin add -
    $ /data/build-server/cordova/6.2.0/bin/cordova plugin add mobi.monaca.plugins.Monaca@3.1.0
    $ /data/build-server/cordova/6.2.0/bin/cordova plugin add mobi.monaca.plugins.BarcodeScanner@1.0.3
    $ /data/build-server/cordova/6.2.0/bin/cordova plugin add cordova-plugin-device-motion@1.2.1
    $ /data/build-server/cordova/6.2.0/bin/cordova plugin add cordova-plugin-camera@2.2.0
    $ /data/build-server/cordova/6.2.0/bin/cordova plugin add cordova-plugin-device-orientation@1.0.3
    $ /data/build-server/cordova/6.2.0/bin/cordova plugin add cordova-plugin-geolocation@2.2.0
    $ /data/build-server/cordova/6.2.0/bin/cordova plugin add cordova-plugin-network-information@1.2.1
    $ /data/build-server/cordova/6.2.0/bin/cordova plugin add cordova-plugin-vibration@2.1.1
    $ /data/build-server/cordova/6.2.0/bin/cordova plugin add cordova-plugin-contacts@2.1.0
    $ /data/build-server/cordova/6.2.0/bin/cordova plugin add cordova-plugin-splashscreen@3.2.2
    $ /data/build-server/cordova/6.2.0/bin/cordova plugin add cordova-plugin-device@1.1.2
    $ /data/build-server/cordova/6.2.0/bin/cordova plugin add cordova-plugin-file@4.2.0
    $ /data/build-server/cordova/6.2.0/bin/cordova plugin add cordova-plugin-file-transfer@1.5.1
    $ /data/build-server/cordova/6.2.0/bin/cordova plugin add cordova-plugin-inappbrowser@1.5.0
    $ /data/build-server/cordova/6.2.0/bin/cordova plugin add cordova-plugin-media-capture@1.3.0
    $ /data/build-server/cordova/6.2.0/bin/cordova plugin add cordova-plugin-statusbar@2.1.3
    $ /data/build-server/cordova/6.2.0/bin/cordova plugin add cordova-plugin-globalization@1.0.3
    $ /data/build-server/cordova/6.2.0/bin/cordova plugin add cordova-plugin-crosswalk-webview@1.7.2 --variable XWALK_VERSION=18.48.477.13
    $ /data/build-server/cordova/6.2.0/bin/cordova plugin add cordova-plugin-whitelist@1.2.2
    $ /data/build-server/cordova/6.2.0/bin/cordova plugin add /data/build-server/debugger/android/6.2
    
    - Cordova prepare -
    $ /data/build-server/cordova/6.2.0/bin/cordova prepare android
    
    Fail to remove /tmp/monaca/5988ae6c803451a272ee4045/project/platforms/android/assets/cordova_files.txt
    
    - Cordova compile -
    $ /data/build-server/cordova/6.2.0/bin/cordova compile --debug --device
    ANDROID_HOME=/data/android-sdk
    JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home
    null
    org.xwalk:xwalk_core_library:18.48.477.13
    :preBuild UP-TO-DATE
    :preArmv7DebugBuild UP-TO-DATE
    :checkArmv7DebugManifest
    :preX86DebugBuild 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:generateDebugAssets UP-TO-DATE
    :CordovaLib:mergeDebugAssets
    :CordovaLib:processDebugManifest
    :CordovaLib:processDebugResources
    :CordovaLib:generateDebugSources
    :CordovaLib:compileDebugJavaWithJavac
    :CordovaLib:processDebugJavaRes UP-TO-DATE
    :CordovaLib:transformResourcesWithMergeJavaResForDebug
    :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug
    :CordovaLib:mergeDebugJniLibFolders
    :CordovaLib:transformNative_libsWithMergeJniLibsForDebug
    :CordovaLib:transformNative_libsWithSyncJniLibsForDebug
    :CordovaLib:bundleDebug
    :prepareAndroidCordovaLibUnspecifiedDebugLibrary
    :preArmv7ReleaseBuild UP-TO-DATE
    :preX86ReleaseBuild UP-TO-DATE
    :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:generateReleaseAssets UP-TO-DATE
    :CordovaLib:mergeReleaseAssets
    :CordovaLib:processReleaseManifest
    :CordovaLib:processReleaseResources
    :CordovaLib:generateReleaseSources
    :CordovaLib:compileReleaseJavaWithJavac
    :CordovaLib:processReleaseJavaRes UP-TO-DATE
    :CordovaLib:transformResourcesWithMergeJavaResForRelease
    :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease
    :CordovaLib:mergeReleaseJniLibFolders
    :CordovaLib:transformNative_libsWithMergeJniLibsForRelease
    :CordovaLib:transformNative_libsWithSyncJniLibsForRelease
    :CordovaLib:bundleRelease
    :prepareComAndroidSupportAppcompatV72221Library
    :prepareComAndroidSupportSupportCompat2600Alpha1Library
    :prepareComAndroidSupportSupportCoreUi2600Alpha1Library
    :prepareComAndroidSupportSupportCoreUtils2600Alpha1Library
    :prepareComAndroidSupportSupportFragment2600Alpha1Library
    :prepareComAndroidSupportSupportMediaCompat2600Alpha1Library
    :prepareComAndroidSupportSupportV42600Alpha1Library
    :prepareOrgXwalkXwalk_core_library184847713Library
    :prepareArmv7DebugDependencies
    :compileArmv7DebugAidl
    :compileArmv7DebugRenderscript
    :generateArmv7DebugBuildConfig
    :generateArmv7DebugAssets UP-TO-DATE
    :mergeArmv7DebugAssets
    :createXwalkCommandLineFileArmv7Debug
    :generateArmv7DebugResValues
    :generateArmv7DebugResources
    :mergeArmv7DebugResources
    AAPT: libpng error: Read Error
    AAPT: libpng error: Read Error
    AAPT: libpng error: Read Error
    AAPT: libpng error: Read Error
    AAPT: libpng error: Read Error
    AAPT: libpng error: Read Error
    :mergeArmv7DebugResources FAILED
    
    BUILD FAILED
    
    Total time: 8.885 secs
    
    
    - postBuild -
    Remove working directories...
    Build Error: Error: Sandbox Exec Error: [ 注意:一部の入力ファイルは非推奨のAPIを使用またはオーバーライドしています。
    注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。
    注意:一部の入力ファイルは非推奨のAPIを使用またはオーバーライドしています。
    注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':mergeArmv7DebugResources'.
    > Some file crunching failed, see logs for details
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    Error: Error code 1 for command: /private/tmp/monaca/5988ae6c803451a272ee4045/project/platforms/android/gradlew with args: cdvBuildDebug,-b,/private/tmp/monaca/5988ae6c803451a272ee4045/project/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
     ]
    

  • Monaca

    @ArtusC Hi,

    Based on your build log, the problem might be related to incorrect/invalid splashscreen files. Please check them and make sure the file is using *.png format.



  • Hi Khemry,
    I deleted the splash screen and it worked.
    Thanks a lot for the help!


Log in to reply