关于Android studio 报错:[clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mo

报错截图就不贴了,报错内容:

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


一开始有而是各种百度,没有解决问题,后来朋友帮忙看了下在app下的build.gradle  android{}中添加:

aaptOptions{cruncherEnabled = false
    useNewCruncher = false
}
解决问题,至于为什么大家指点


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部