美文网首页
微信支付demo 出错

微信支付demo 出错

作者: 爱玩保龄球 | 来源:发表于2017-10-27 16:51 被阅读0次

    问题日志:

    :app:mergeDebugResources

    AAPT err(Facade for 1740491424) : No Delegate set : lost message:libpng error: Not a PNG file

    Error: java.lang.RuntimeException: Some file crunching failed, see logs for details

    :app:mergeDebugResources FAILED

    FAILURE: Build failed with an exception.

    * What went wrong:

    Execution failed for task ':app:mergeDebugResources'.

    > Error: java.lang.RuntimeException: 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

    解决方法:

    在build.gradle里加入

    android {

    ......

    aaptOptions {         cruncherEnabled = false     }

    }

    相关文章

      网友评论

          本文标题:微信支付demo 出错

          本文链接:https://www.haomeiwen.com/subject/iicvuxtx.html