Failed to capture snapshot of output files for task

gradle 1843
failed to create md5 hash for file content gradle
caused by org gradle api uncheckedioexception could not read script
gradle copy symlink
gradle delete symbolic link
task :app:predebugbuild failed
gradle create symlink

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


Disable your antivirus, and it will work.

Failed to capture snapshot of input files for task ':app , Failed to capture fingerprint of output files for task ':app:processDebugResources' property 'sourceOutputDir' during up-to-date check #4858. Closed. FAILURE: Build failed with an exception. What went wrong: Failed to capture snapshot of input files for task ':app:compileDebugKotlin' property 'classpath' during up-to-date check. Could not list contents of '/usr/bin/dmtracedump'. Couldn't follow symbolic link. Try: Run with --info or --debug option to get more log output.


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

Failed to capture fingerprint of output files for task ':app , UncheckedIOException: Failed to capture snapshot of input files for task CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:87) at​  * Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Exception is: org.gradle.api.UncheckedIOException: Failed to capture snapshot of input files for task ':app:checkDebugClasspath' property 'runtimeClasspath' during up-to-date check.


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.

Failed to capture snapshot of input files for task ':react-native-device , gradle.BuildExceptionReporter] Failed to capture snapshot of input files for task '​war' during up-to-date check. See stacktrace for details. 12:  Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. Learn more failed to capture snapshot of input files for task android studio


I Solved this issue in my react-native project by removing all npm cache

1.npm  cache clean --force
2.react-native run-android

Build failure with Failed to capture snapshot of input files for task 'war', 【Android】Failed to capture snapshot of output files for task, Programmer Sought, the best programmer technical posts sharing site. React Native Failed to capture snapshot of input files for task 'bundleReleaseJsAndAssets' during up-to-date check Ask Question Asked 2 years, 2 months ago


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

【Android】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  Failed to capture snapshot of input files for task ':app:bundleReleaseJsAndAssets' property '$1' during up-to-date check. #361 agoiabel opened this issue Oct 27, 2018 · 6 comments Comments


Failed to capture snapshot of output files for task, Task :prepare_release_config FAILEDFAILURE: Build failed with an exception.* What went wrong: Failed to capture snapshot of output files for task  Failed to capture fingerprint of input files for task ':app:preDebugBuild' property 'compileManifests' during up-to-date check. In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[17.1. 1]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.


[#GOBBLIN-1013] Gradle build fails on Windows on , Gradle tasks [:app:assembleDebug] Failed to capture snapshot of output files for task 'transformClassesWithDexBuilderForDebug' property  Error:Failed to capture snapshot of output files for task 'mockableAndroidJar' property 'outputFile' during up-to-date check. > Failed to create MD5 hash for file 'mockable-android-25.jar'. RAW Paste Data


【Android】Failed to capture snapshot of output files for , What went wrong: Failed to capture snapshot of output files for task 'copyToRoot' property 'destinationDir' during up-to-date check. > Failed to create MD5 hash  I solved this issue by setting buildToolsVersion in my build.gradle file to match the latest version of the Android SDK Build-tools in the SDK manager.. In my case, I have the Android SDK Build-tools version 22.0.1 installed, so I set buildToolsVersion accordingly: