Android Studio 2错误:app:compileDebugJavaWithJack [英] Android Studio 2 error :app:compileDebugJavaWithJack
问题描述
这是来自Android Studio 2.1.1的完整错误.我知道此代码可以编译,因为在其他PC上可以编译,而在装有Windows 10 x64的PC上则不能.其他所有项目均失败,结果相似.
This is the complete error from Android Studio 2.1.1. I know this code compiles because on other PC it does, just not on this one which has Windows 10 x64. All other projects fail with similar result.
Error:Execution failed for task ':app:compileDebugJavaWithJack'.
> java.lang.RuntimeException: java.lang.AssertionError: com.android.jack.library.LibraryIOException: I/O error when accessing file 'I:\Android\KeepVidDownloader\Android\app\build\intermediates\packaged\debug\classes.zip': Failed to delete directory 'C:\Users\BCDIAC~1\AppData\Local\Temp\vfs-1464787788985-0'
对于Build-> Clean Project,我从这里使用了解决方案 https://stackoverflow.com/a/32924320/1958032
For Build -> Clean Project I have used the solution from here https://stackoverflow.com/a/32924320/1958032
我认为可能会有类似的解决方案来运行/制作该应用程序.
I think that there could be a similar solution for running/making the app.
如何解决这个问题?
推荐答案
此问题是防病毒软件与Android Studio之间的冲突. 就我而言,使用的是Avira,Windows 10和Android Studio 2.2. 我只是禁用了Avira的第一个构建,并在构建完成后再次启用了它. 无需每次都这样做-仅在首次构建时即可.
This issue is a conflict between antivirus and Android Studio. In my case using Avira, Windows 10 and Android Studio 2.2. I just disabled Avira for the first build and enabled it again when build was complete. No need to do this every time- only at the first build.
这篇关于Android Studio 2错误:app:compileDebugJavaWithJack的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!