Execution failed for task ':app:transformClassesWithPreJackPackagedLibrariesForArmv7aDebug'

904 Views Asked by At

So I came across this problem when I am clicking the play button on Android Studio in order to deploy to my device and I cannot figure out how to solve this. Please see print shot attached: Gradle Message

I did take certain actions :

  1. Rebuild Project (Builds with no problem)
  2. Clean Project , (In this case it fails to clean the project)
  3. Ran gradlew clean on terminal (failed to clean) with message could not execute clean for ':app:clean'
  4. Make Project (no results)
  5. Invalidated Caches and Restarted.

None of those actions have taken effect!

Any ideas and solutions are welcome! Thanks in advance!

1

There are 1 best solutions below

5
Mircea Nistor On

I ran into problems similar to this after forcefully ending some builds which got my caches corrupted somehow.

I would also try to restart the computer and clean the Temp folder after that.

If a full restart is overkill, exit Android Studio, run a gradlew --stop to kill all the gradle daemons, and/or kill every java process. Then try to clear the Temp directory

If you're still in a weird state, delete the .gradle folder in your project folder (N.B .gradle, not gradle folder) and as a last resort also try to clear the contents of C:\Users\manos\.gradle\