今天遇到Android studio 无法编译通过的情况,查了半天,最后终于查到原因:是因为把一个jpg的图片直接后缀改成png造成的!然后删除这张强行改成png的图片后,就没报错了!特记录一下!
Error:FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:clean'.
> Unable to delete directory: \app\build\intermediates\transforms\dexBuilder\debug
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 10s