Error:org.gradle.api.internal.changedetection.state.DefaultFileCollectionSnapshotter$FileCollectionS

(转载)http://stackoverflow.com/questions/26354153/android-studio-gradle-error-at-compile-time


I have an Android App in Android Studio. When I build project with Gradle File,it gives me one error at compile time. Error Report:

Error:org.gradle.api.internal.changedetection.state.DefaultFileCollectionSnapshotter$FileCollectionSnapshotImpl cannot be cast to org.gradle.api.internal.changedetection.state.OutputFilesCollectionSnapshotter$OutputFilesSnapshot


解决方案:

1.delete {project dir}/.gradle/1.9

2.Sync Project with Gradle File


把项目中的.gradle文件夹删除,然后同步即可。

没有添加任何相关的信息;

你可能感兴趣的:(Error:org.gradle.api.internal.changedetection.state.DefaultFileCollectionSnapshotter$FileCollectionS)