Notice: The Monaca & Onsen UI Community Forum is shutting down.

For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.

Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.

Build error after update to CLI 6.5.0 (SOLVED)



  • My app was ok before upgrading to Cordova 6.5.0. Also it is fine when building for iOS. But in Android i now get an error.

    Any ideas on this…?

    BUILD FAILED
    
    Total time: 9.256 secs
    
    
    - postBuild -
    Remove working directories...
    Build Error: Error: Sandbox Exec Error: [ 注意:一部の入力ファイルは非推奨のAPIを使用またはオーバーライドしています。
    注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。
    注意:一部の入力ファイルは非推奨のAPIを使用またはオーバーライドしています。
    注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。
    AAPT err(Facade for 219168188) : No Delegate set : lost message:libpng error: Read Error
    AAPT err(Facade for 1417129474) : No Delegate set : lost message:libpng error: Read Error
    AAPT err(Facade for 1750716680) : No Delegate set : lost message:libpng error: Read Error
    AAPT err(Facade for 1750716680) : No Delegate set : lost message:libpng error: Read Error
    AAPT err(Facade for 1750716680) : No Delegate set : lost message:libpng error: Read Error
    AAPT err(Facade for 1141334244) : No Delegate set : lost message:libpng error: Read Error
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':mergeDebugResources'.
    > Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: 
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    Error: /private/tmp/monaca/599096b7ff2af29a6eec55ff/project/platforms/android/gradlew: Command failed with exit code 1 Error output:
    注意:一部の入力ファイルは非推奨のAPIを使用またはオーバーライドしています。
    注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。
    注意:一部の入力ファイルは非推奨のAPIを使用またはオーバーライドしています。
    注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。
    AAPT err(Facade for 219168188) : No Delegate set : lost message:libpng error: Read Error
    AAPT err(Facade for 1417129474) : No Delegate set : lost message:libpng error: Read Error
    AAPT err(Facade for 1750716680) : No Delegate set : lost message:libpng error: Read Error
    AAPT err(Facade for 1750716680) : No Delegate set : lost message:libpng error: Read Error
    AAPT err(Facade for 1750716680) : No Delegate set : lost message:libpng error: Read Error
    AAPT err(Facade for 1141334244) : No Delegate set : lost message:libpng error: Read Error
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':mergeDebugResources'.
    > Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: 
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
     ]
    


  • Let me add the whole log:

    
    Fetch queue Info...
    Start building 5990a3a8ff2af26810c4c42c
    Setup working directories...
    Download project archive...
    Extract project archive...
    Fetch project info...
    Webview:null
    Arch:null
    cordova version: 6.5.0
    
    
    - preBuild -
    buildForAndroid
    
    - Cordova create -
    $ /data/build-server/cordova/6.5.0/bin/cordova create /tmp/monaca/5990a3a8ff2af26810c4c42c/project
    Creating a new cordova project.
    
    
    - Copy .monaca-res directory -
    
    - Copy config.xml -
    
    - Cordova platform add -
    $ /data/build-server/cordova/6.5.0/bin/cordova platform add /data/build-server/cordova/platforms/android/6.2.3
    Adding android project...
    Creating Cordova project for the Android platform:
    	Path: platforms/android
    	Package: com.afdelingtrainingen.paranta
    	Name: Paranta
    	Activity: MainActivity
    	Android target: android-25
    Subproject Path: CordovaLib
    Android project created with cordova-android@6.2.3
    
    
    - Copy external plugin setting files -
    
    - Copy www files -
    
    - Cordova plugin add -
    $ /data/build-server/cordova/6.5.0/bin/cordova plugin add mobi.monaca.plugins.Monaca@3.1.0
    $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-whitelist@1.3.1
    $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-network-information@1.3.3
    $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-badge
    $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-custom-config@2.0.3
    $ /data/build-server/cordova/6.5.0/bin/cordova plugin add https://github.com/katzer/cordova-plugin-hidden-statusbar-overlay.git
    $ /data/build-server/cordova/6.5.0/bin/cordova plugin add https://github.com/apache/cordova-plugin-statusbar.git
    $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-device@1.1.6
    $ /data/build-server/cordova/6.5.0/bin/cordova plugin add /tmp/monaca/5990a3a8ff2af26810c4c42c/output/plugins/cordova-plugin-copy-resources
    $ /data/build-server/cordova/6.5.0/bin/cordova plugin add /tmp/monaca/5990a3a8ff2af26810c4c42c/output/plugins/cordova-plugin-splashscreen
    $ /data/build-server/cordova/6.5.0/bin/cordova plugin add /tmp/monaca/5990a3a8ff2af26810c4c42c/output/plugins/cordova-plugin-streaming-media
    $ /data/build-server/cordova/6.5.0/bin/cordova plugin add /tmp/monaca/5990a3a8ff2af26810c4c42c/output/plugins/parse-push-plugin
    
    - Cordova prepare -
    $ /data/build-server/cordova/6.5.0/bin/cordova prepare android
    cordova-custom-config: Skipping auto-restore of config file backup(s)
    
    
    - Cordova compile -
    $ /data/build-server/cordova/6.5.0/bin/cordova compile --debug --device
    ANDROID_HOME=/data/android-sdk
    JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home
    :wrapper
    
    BUILD SUCCESSFUL
    
    Total time: 0.884 secs
    Subproject Path: CordovaLib
    The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
    	at build_559qa2z8oj0yhb4iur4opbr0e.run(/private/tmp/monaca/5990a3a8ff2af26810c4c42c/project/platforms/android/build.gradle:138)
    The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
    Incremental java compilation is an incubating feature.
    The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
    :preBuild UP-TO-DATE
    :preDebugBuild UP-TO-DATE
    :checkDebugManifest
    :preReleaseBuild UP-TO-DATE
    :CordovaLib:preBuild UP-TO-DATE
    :CordovaLib:preDebugBuild UP-TO-DATE
    :CordovaLib:checkDebugManifest
    :CordovaLib:prepareDebugDependencies
    :CordovaLib:compileDebugAidl
    :CordovaLib:compileDebugNdk UP-TO-DATE
    :CordovaLib:compileLint
    :CordovaLib:copyDebugLint UP-TO-DATE
    :CordovaLib:mergeDebugShaders
    :CordovaLib:compileDebugShaders
    :CordovaLib:generateDebugAssets
    :CordovaLib:mergeDebugAssets
    :CordovaLib:mergeDebugProguardFiles
    :CordovaLib:packageDebugRenderscript UP-TO-DATE
    :CordovaLib:compileDebugRenderscript
    :CordovaLib:generateDebugResValues
    :CordovaLib:generateDebugResources
    :CordovaLib:packageDebugResources
    :CordovaLib:processDebugManifest
    :CordovaLib:generateDebugBuildConfig
    :CordovaLib:processDebugResources
    :CordovaLib:generateDebugSources
    :CordovaLib:incrementalDebugJavaCompilationSafeguard
    :CordovaLib:compileDebugJavaWithJavac
    :CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
    :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:checkReleaseManifest
    :CordovaLib:prepareReleaseDependencies
    :CordovaLib:compileReleaseAidl
    :CordovaLib:compileReleaseNdk UP-TO-DATE
    :CordovaLib:copyReleaseLint UP-TO-DATE
    :CordovaLib:mergeReleaseShaders
    :CordovaLib:compileReleaseShaders
    :CordovaLib:generateReleaseAssets
    :CordovaLib:mergeReleaseAssets
    :CordovaLib:mergeReleaseProguardFiles
    :CordovaLib:packageReleaseRenderscript UP-TO-DATE
    :CordovaLib:compileReleaseRenderscript
    :CordovaLib:generateReleaseResValues
    :CordovaLib:generateReleaseResources
    :CordovaLib:packageReleaseResources
    :CordovaLib:processReleaseManifest
    :CordovaLib:generateReleaseBuildConfig
    :CordovaLib:processReleaseResources
    :CordovaLib:generateReleaseSources
    :CordovaLib:incrementalReleaseJavaCompilationSafeguard
    :CordovaLib:compileReleaseJavaWithJavac
    :CordovaLib:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
    :CordovaLib:processReleaseJavaRes UP-TO-DATE
    :CordovaLib:transformResourcesWithMergeJavaResForRelease
    :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease
    :CordovaLib:mergeReleaseJniLibFolders
    :CordovaLib:transformNative_libsWithMergeJniLibsForRelease
    :CordovaLib:transformNative_libsWithSyncJniLibsForRelease
    :CordovaLib:bundleRelease
    :prepareComAndroidSupportSupportCompat2600Alpha1Library
    :prepareComAndroidSupportSupportCoreUi2600Alpha1Library
    :prepareComAndroidSupportSupportCoreUtils2600Alpha1Library
    :prepareComAndroidSupportSupportFragment2600Alpha1Library
    :prepareComAndroidSupportSupportMediaCompat2600Alpha1Library
    :prepareComAndroidSupportSupportV42600Alpha1Library
    :prepareComParseParseAndroid1157Library
    :prepareMeLeolinShortcutBadger1117Library
    :prepareOrgApacheCordovaCordovaLib623DebugLibrary
    :prepareDebugDependencies
    :compileDebugAidl
    :compileDebugRenderscript
    :generateDebugBuildConfig
    :generateDebugResValues
    :generateDebugResources
    :mergeDebugResources
    Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: 
    :mergeDebugResources FAILED
    
    BUILD FAILED
    
    Total time: 2.267 secs
    
    
    - postBuild -
    Remove working directories...
    Build Error: Error: Sandbox Exec Error: [ 注意:一部の入力ファイルは非推奨のAPIを使用またはオーバーライドしています。
    注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。
    注意:一部の入力ファイルは非推奨のAPIを使用またはオーバーライドしています。
    注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。
    AAPT err(Facade for 1077788347) : No Delegate set : lost message:libpng error: Read Error
    AAPT err(Facade for 544514081) : No Delegate set : lost message:libpng error: Read Error
    AAPT err(Facade for 1846369099) : No Delegate set : lost message:libpng error: Read Error
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':mergeDebugResources'.
    > Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: 
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    AAPT err(Facade for 1333802257) : No Delegate set : lost message:libpng error: Read Error
    AAPT err(Facade for 1057356596) : No Delegate set : lost message:libpng error: Read Error
    AAPT err(Facade for 1333802257) : No Delegate set : lost message:libpng error: Read Error
    Error: /private/tmp/monaca/5990a3a8ff2af26810c4c42c/project/platforms/android/gradlew: Command failed with exit code 1 Error output:
    注意:一部の入力ファイルは非推奨のAPIを使用またはオーバーライドしています。
    注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。
    注意:一部の入力ファイルは非推奨のAPIを使用またはオーバーライドしています。
    注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。
    AAPT err(Facade for 1077788347) : No Delegate set : lost message:libpng error: Read Error
    AAPT err(Facade for 544514081) : No Delegate set : lost message:libpng error: Read Error
    AAPT err(Facade for 1846369099) : No Delegate set : lost message:libpng error: Read Error
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':mergeDebugResources'.
    > Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: 
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    AAPT err(Facade for 1333802257) : No Delegate set : lost message:libpng error: Read Error
    AAPT err(Facade for 1057356596) : No Delegate set : lost message:libpng error: Read Error
    AAPT err(Facade for 1333802257) : No Delegate set : lost message:libpng error: Read Error
     ]
    
    


  • This was definitely the most impressive error i’ve ever gotten. It turns out you have to add your icon png files again…



  • @remzo

    It turns out you have to add your icon png files again…

    Can you please tell me where did you add icon.png file?0_1513769621526_Untitled.png



  • Oh got it
    You just need to make sure files in icon folder matches to that of in config.xml
    In my case config.xml had a extra file name