奇怪的gradle错误android工作室 [英] Strange gradle error android studio

查看:1133
本文介绍了奇怪的gradle错误android工作室的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误:org.gradle.api.internal.changedetection.state.DefaultFileCollectionSnapshotter $ FileCollectionSnapshotImpl无法强制转换为org.gradle.api.internal.changedetection.state.OutputFilesCollectionSnapshotter $ OutputFilesSnapshot
此意外错误的可能原因包括:

  • Gradle的依赖性缓存可能已损坏(这有时会在网络连接超时后发生。)
    重新下载依赖项和同步项目(需要网络)
  • 状态Gradle构建过程(守护程序)可能已损坏。停止所有Gradle守护进程可以解决此问题。
    停止Gradle构建过程(需要重新启动)
  • 您的项目可能正在使用第三方插件,该插件与项目中的其他插件或项目请求的Gradle版本不兼容。
  • 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.
    • 推荐答案

      我通过删除appDirectory / .Gradle / 2.10解决了这个问题,然后使用带有gradle的同步项目

      I solved this by deleting appDirectory/.Gradle/2.10 and then use sync project with gradle

      这篇关于奇怪的gradle错误android工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆