codiac
codiac

Reputation: 1991

Android Studio 2 error :app:compileDebugJavaWithJack

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'

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.

How to solve this?

Upvotes: 3

Views: 2185

Answers (2)

Codelover
Codelover

Reputation: 265

I had a similar problem and solved it by File->Invalidate Caches and Restart.

Upvotes: 0

Hanoch Moreno
Hanoch Moreno

Reputation: 613

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.

Upvotes: 8

Related Questions