zoukankan      html  css  js  c++  java
  • FAILURE: Build failed with an exception. Crunching Cruncher screen.png failed

    自己测试ionic的模板项目cutePuppyPics时,按照https://github.com/driftyco/ionic/blob/2.0/CHANGELOG.md#angular-update-to-200-rc1  升级Angularjs版本后,运行cordova build android 编译项目时总是报如下错

    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':mergeDebugResources'.
    > 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.
    
    BUILD FAILED
    
    Total time: 4.738 secs
    Error: Error code 1 for command: cmd with args: /s,/c,"G:ViolacutePuppyPicsplatformsandroidgradlew cdvBuildDe
    bug -b G:ViolacutePuppyPicsplatformsandroiduild.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=t
    rue"

    再试试运行ionic build android,报错信息如下:

    :generateDebugResValues UP-TO-DATE
    :generateDebugResources UP-TO-DATE
    :mergeDebugResourcesAAPT err(Facade for 127747075): libpng error: Read Error
    FAILED

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':mergeDebugResources'.
    > Crunching Cruncher screen.png failed, see logs

    * Try:

    BUILD FAILED

    Total time: 3.835 secs
    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: cmd with args: /s,/c,"G:ViolacutePuppyPicsplatformsandroidgradlew cdvBuildDe
    bug -b G:ViolacutePuppyPicsplatformsandroiduild.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=t
    rue"

    最后原因竟然是因为在运行ionic resources的时候,生成的图片有一张出错,重新生成之后,再运行就没有问题了。

  • 相关阅读:
    判断ArryaList有没有重复对象的方法
    使用Java对字符串进行升序排序
    用三层盒子结构实现多边框
    盒子模型的margin负数用法
    解决盒子浮动时margin会显示两倍的美观问题
    纯HTML和CSS实现JD轮播图
    Java的策略模式
    Java的适配器模式
    Java的单例模式
    阿里云服务器配置
  • 原文地址:https://www.cnblogs.com/viola-sh/p/5557138.html
Copyright © 2011-2022 走看看