I'm trying to build my android app. It was working fine when suddenly windows defender gave me a message that it had found a threat, and directly after I get an error message:
Error:Failed to capture snapshot of output files for task 'compileDebugJavaWithJavac' property 'destinationDir' during up-to-date check.
Failed to create MD5 hash for file 'C:\Users\userx\folderx\folderx\app\build\intermediates\classes\debug\com\apps\sdc\app\global\randomclass.class'.
This happens every time I try to build my project.
Thanks in advance.
Solution:
Disable Windows defender and it should work.