问题日志:
: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 }
}
网友评论