KotlinAndroid
KotlinAndroid copied to clipboard
经常编译失败提示module的class.jar无法删除
这个方式经常出现
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':Provider:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug'.
java.lang.RuntimeException: java.io.IOException: Failed to delete \build\intermediates\intermediate-jars\debug\classes.jar
这个文件无法删除,被java.exe占用了,这个有没有什么方法解决?经常要手动就接触占用
这个方式经常出现
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':Provider:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug'.
java.lang.RuntimeException: java.io.IOException: Failed to delete \build\intermediates\intermediate-jars\debug\classes.jar
这个文件无法删除,被java.exe占用了,这个有没有什么方法解决?经常要手动就接触占用
这个问题是由“kotlin-android”插件引起的,目前的解决办法就是在打包的时候自动执行clean命令,这样就不用手动了。代码已上传。
好的,谢谢
在gradle5.1.1上不能执行clean.execute(),该如何解决?
在gradle5.1.1上不能执行clean.execute(),该如何解决?
taskClean.onlyIf { true }