Failed execution for task ': app: packageDebug' - Can not read zip file


Without any changes in my code, suddenly i get this error when I try to run my app:

  • What went wrong: Execution failed for task ':app:packageDebug'. Failed to read zip file 'C:\Users\Eliran\AndroidStudioProjects\Forum\app\build\outputs\apk\app-debug.apk'.

I have no idea why its trying to read the apk as zip file.

  • If I restart Android Studio, I can run the app once and then It happens again.

This issue has been reported to the development team: