Home » Android » gradle – Android: Execution failed for task ':app:packageDebug'. > data

gradle – Android: Execution failed for task ':app:packageDebug'. > data

Posted by: admin June 15, 2020 Leave a comment


I am just created sample project and facing this issue. Can anybody help on this to resolve this ?

How to&Answers:

Try to manually delete apk \app\build\outputs\apk\app-debug.apk’ after closing android studio. It would work though, after some time error may raise again , but you can continue your work by doing so.


Just Click ‘Clean Project’ under ‘Build’ and it’s done!


Answers here have helped many people, but my issue was that debug.keystore was corrupted somehow. I had to delete the debug.keystore inside \app directory first and regenerate the debug.keystore with below-given command. Make sure to run it inside the app direcctory.