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 Studio 无法编译,出现下列错误提示的解决方案。_第1张图片




更多相关文章

  1. 在Android中创建文件
  2. Android 删除指定文件代码
  3. Android之activity跳转显示桌面及切换黑屏问题解决方案
  4. Android中XML文件的使用
  5. Android使用HttpURLConnection上传文件
  6. Android so 文件简介
  7. Android 文件工具FileUtil
  8. android 在SD卡创建文件夹
  9. Android下各文件方法获取的路径

随机推荐

  1. Android Market 链接的生成与分享
  2. 【翻译】Android中的AOP编程
  3. 【摘录】Ubuntu Android NDK环境的配置
  4. Android Preference Activity使用
  5. Android JetPack学习笔记之LiveData
  6. 调试 android 工程时出现 Unable to uplo
  7. Androidの来短信监听详解
  8. 在Android中常见的几种刷新方式
  9. Android手势(上,下,左和右的判断)
  10. Android第六课 安装异常处理