Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to capture snapshot of output files for task

Tags:

android

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

Failed to create MD5 hash for file 'C:\Users\GauravZone\AndroidStudioProjects\ZopporoStore\app\build\intermediates\transforms\dex\debug\folders\1000\10000\instant-run_83dbc65f4e3a4cd278807c089695c6b352698791\classes.dex'.

I am getting these errors don't know why, all application working fine earlier but suddenly getting this error in my all applications when try to run projects

like image 647
gaurav_android Avatar asked Mar 28 '17 09:03

gaurav_android


3 Answers

Screenshot

Disable your antivirus, and it will work.

like image 142
Deepak Pandit Avatar answered Nov 13 '22 20:11

Deepak Pandit


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

like image 39
shashi2459 Avatar answered Nov 13 '22 20:11

shashi2459


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.
like image 5
Govan Avatar answered Nov 13 '22 21:11

Govan