2016-11-16 130 views
0

我从png转换九补丁后得到这个错误。我看到你以前的答案在同一个问题上,但没有得到结果帮助我。由于九补丁导致的错误

它我的错误日志:

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 

,从这里是我的gradle产出:

apply plugin: 'com.android.application' android { 
compileSdkVersion 24 
buildToolsVersion "24.0.3" 
defaultConfig { 
    applicationId "kliff.communitydesigns" 
    minSdkVersion 19 
    targetSdkVersion 24 
    versionCode 1 
    versionName "1.0" 
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
} 
buildTypes { 
    release { 
     minifyEnabled false 
     proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
    } 
} 
} dependencies { 
compile fileTree(include: ['*.jar'], dir: 'libs') 
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 
    exclude group: 'com.android.support', module: 'support-annotations' 
}) 
compile 'com.android.support:appcompat-v7:24.2.1' 
compile 'com.android.support:cardview-v7:24.2.1' 
compile 'com.android.support:recyclerview-v7:24.2.1' 
compile 'com.android.support:design:24.2.1' 
compile 'com.android.volley:volley:1.0.0' 
compile 'com.android.support:support-v4:24.2.1' 

compile 'com.squareup.picasso:picasso:2.4.0' 
compile 'de.hdodenhof:circleimageview:2.1.0' 

} 
+0

参考http://stackoverflow.com/questions/30764604/execution-failed-for-task-appmergedebugresources-crunching-cruncher-png-fa – sasikumar

+0

因为我添加abc.9.png它的创建问题没有它我的项目运行完美无瑕。但它的简单形象。我想要9个补丁。 –

+0

感谢兄弟我已经解决了这个错误。由于我的自定义9补丁感谢您的建议。 –

回答

0

这个问题出现的可能是你正在创建自己9patch ..结账以下link并创建自己的9补丁

Canvas and Drawables

+0

谢谢....我从上周有这个问题,现在我通过考虑你的答案来解决它... –