now that I'm working from home I'm trying to work for my home desktop (windows) when I try and run a debug build. I get the error.
Execution failed for task ':app:packageDebug'. > Exception modifying resource jar file: : D:\Dev\APPFOLDER\app\build\intermediates\merged_java_res\debug\out.jar: The process cannot access the file because it is being used by another process.
I don't understand what is going on I can run the build just fine on my laptop (Mac). I've even gone as far as to completely factory reset my computer.
Hi @Donovan I've been facing the same issue when started updating my project from windows. Same project works fine and able to build apk in mac os.
Finally figured out the cause because of your answer. Thanks and check out below solution too.
Current System OS : Windows 10