Android Studio 无法编译,出现下列错误提示的解决方案。
16lz
2021-01-23
Error:org.gradle.api.internal.changedetection.state.DefaultFileCollectionSnapshotter$FileCollectionSnapshotImpl cannot be cast to org.gradle.api.internal.changedetection.state.OutputFilesCollectionSnapshotter$OutputFilesSnapshot Possible causes for this unexpected error include:- Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network)
- The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem. Stop Gradle build processes (requires restart)
- Your project may be using a third-party plugin which is not compatible with the other plugins in the project or 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.
解决方法如下:适合我的就是删除AS该项目中框中的文件,一般情况下只有一个的。
更多相关文章
- 在Android中创建文件
- Android 删除指定文件代码
- Android之activity跳转显示桌面及切换黑屏问题解决方案
- Android中XML文件的使用
- Android使用HttpURLConnection上传文件
- Android so 文件简介
- Android 文件工具FileUtil
- android 在SD卡创建文件夹
- Android下各文件方法获取的路径