So, I was sitting and encoded in Android Studio when the power suddenly went out for a minute. Now, when I try to create / run my application, I get this Gradle error:
Error: org.gradle.api.internal.changedetection.state.DefaultFileCollectionSnapshotter $ FileCollectionSnapshotImpl could not be passed to org.gradle.api.internal.changedetection.state.OutputFilesCollectionSnapshotter $ OutputFilesSnapshot Possible causes of this unexpected error
- Gradle The dependency cache may be corrupted (this sometimes happens after a network connection timeout). Restart dependencies and synchronization project (network required).
- The state of the assembly process (daemon) may be damaged. Stopping all Gradle daemons can solve this problem. Stop Gradle build processes (reboot required)
- Your project may use a third-party plugin that is incompatible with other project plugins or with the version of Gradle requested by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
I tried Invalidate my Caches and rebooted, cleaned and rebuilt the server time of the project, still getting this error.
source
share