Skip to content Skip to sidebar Skip to footer

Failed To Capture Snapshot Of Output Files For Task

Error:Failed to capture snapshot of output files for task 'transformClassesWithDexForDebug' property 'streamOutputFolder' during up-to-date check. Failed to create MD5 hash for fi

Solution 1:

Screenshot

Disable your antivirus, and it will work.

Solution 2:

This is a Gradle issue and you can find it here. So as of now just disable Instant Run. It worked for me.

Solution 3:

In android studio,

  1. Open the Settings or Preferences dialog: On Windows or Linux, select File > Settings from the menu bar. On Mac OSX, select Android Studio > Preferences from the menu bar.
  2. Navigate to Build, Execution, Deployment > Instant Run.
  3. Uncheck The box next to Restart activity on code changes.

Solution 4:

Set multiDexEnabled true in your buildType release class in your build.gradle file

Solution 5:

I was also getting the same error. But when i disabled Instant Run, Gradle started building. But i agree with those who think this is a Gradle issue. And until it gets resolve, disable Instant Run.

Post a Comment for "Failed To Capture Snapshot Of Output Files For Task"