报错信息如下:
Information:Gradle tasks [clean, :app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources]
Error:Some file crunching failed, see logs for details
Error:Execution failed for task ':app:mergeDebugResources'.
> Error: Some file crunching failed, see logs for details
Information:BUILD FAILED
Information:Total time: 6.03 secs
Information:2 errors
Information:0 warnings
Information:See complete output in console
这个问题一般是因为配置文件的问题,比如manifest.xml中的provider等。先检查配置文件参数是否都正确书写,如果排查后,全部书写正确。再按下面的方法进行操作。
解决方法:
在app下的build.gradle android{}中添加:
aaptOptions{ cruncherEnabled = false useNewCruncher = false }