Error:org.gradle.api.internal.changedetection.state.FileCollectionSnapshotImpl cannot be cast to

Error:org.gradle.api.internal.changedetection.state.FileCollectionSnapshotImpl cannot be cast to org.gradle.api.internal.changedetection.state.OutputFilesCollectionSnapshotter$OutputFilesSnapshot
Possible causes for this unexpected error include:In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

Android Sutdio 出现这个错误,我蒙圈了,根据提示重启IDE、杀死Java所有进程,可还是不起作用,于是觉得有可能是.gradle 出问题了,直接把.gradle 文件夹删了,然后这个错误就被秒杀了,.gradle 文件夹删了之后是会重新生成的,所以不用担心!

第一次写博客有些小激动,写的不好之处还请各位多担待,感谢!

你可能感兴趣的:(android开发工具)