Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译不通过 java.io.IOException: Could not delete path......\transforms\desugar\debug\10.jar'. #28

Open
ZanePoe opened this issue Dec 7, 2017 · 2 comments

Comments

@ZanePoe
Copy link

ZanePoe commented Dec 7, 2017

错误提示:
`Error:Execution failed for task ':......:transformClassesWithDesugarForDebug'.

com.android.build.api.transform.TransformException: java.io.IOException: Could not delete path 'D:......\build\intermediates\transforms\desugar\debug\10.jar'.`

AndroidStudio第一次启动应用了BlockCanaryEx的项目时不会报错,编译正常。但只要修改任何代码,之后都无法正常编译了,clean project时提示:
Unable to delete file: D:\......\build\intermediates\processing-tools\runtime-deps\debug\desugar_try_with_resources.jar

只有invalidate Caches /restart之后才能再运行,然后重复这个问题。

我推测是BlockCanaryExPlugin这个插件没有释放资源导致。

@AvatarQing
Copy link

AvatarQing commented Dec 15, 2017

很长一段时间,我也一直报类似的问题,我们项目引用的东西太多了,难以排查,今天终于发现是BlockCanaryEx搞的。。。编译过一次后再编译就会报错,windows下手动关闭java.exe进程可临时解决,暂时先弃坑了~

@CD3108
Copy link

CD3108 commented Jul 17, 2019

这个应该 clean 一下就行,应该是引入了 AOP 导致的,我项目偶尔也会出,clean 一下就好了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants