• Android Studio 导入 Eclipse项目 报 Some file crunching failed, see logs for details


    今天在用Android Studio 导入一个Eclipse的项目,报了如下错误:

    Error:java.lang.RuntimeException: Some file crunching failed, see logs for details
    
    Error:Execution failed for task ':app:mergeDebugResources'.
    > Error: java.lang.RuntimeException: Some file crunching failed, see logs for details

    上网查了一下原因,说是在build.gradle(app)中加入如下语句即可,但确并没有起作用

    aaptOptions {
        cruncherEnabled = false
        useNewCruncher = false
    }

    而事实证明,是因为drawable中有.9后缀的图片,将.9去掉即可,有的说将.jpg改为.png也会出现这个问题,这个还没有测试过

  • 相关阅读:
    FormData的使用
    数据绑定
    DOM的映射机制
    leetcode750
    leetcode135
    leetcode41
    leetcode269
    leetcode253
    leetcode42
    leetcode48
  • 原文地址:https://www.cnblogs.com/cxsy/p/8376159.html
Copyright © 2020-2023  润新知