本文介绍了Android Studio 2.1.3 中的构建错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 android studio 2.1.3.尽管清除了项目并再次重建它,重新启动等,但我收到以下错误...如何解决?

I am using android studio 2.1.3. I am getting the following error, in spite of clearing the project and rebuilding it again, restarting etc... How to solve it?

错误:任务 :app:transformClassesWithJavaResourcesVerifierForDebug 的执行失败.

org.gradle.api.internal.changedetection.rules.DescriptiveChange 不能转换为 org.gradle.api.tasks.incremental.InputFileDetails可能已损坏(这有时发生在网络连接超时之后.)重新下载依赖项并同步项目(需要网络)

  • Gradle 构建进程(守护进程)的状态可能已损坏.停止所有 Gradle 守护进程可能会解决这个问题.停止 Gradle 构建过程(需要重新启动)
  • 您的项目可能正在使用第三方插件,该插件与项目中的其他插件或项目请求的 Gradle 版本不兼容.
  • 如果 Gradle 进程损坏,您也可以尝试关闭 IDE,然后杀死所有 Java 进程.

    org.gradle.api.internal.changedetection.rules.DescriptiveChange cannot be cast to org.gradle.api.tasks.incremental.InputFileDetailsay 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.

    推荐答案

    谢谢.

    我使用的是 Windows 8.1我尝试删除应用程序文件夹中的文件夹 .gradle .然后我清理了项目并再次构建它.现在一切正常.

    I am using Windows 8.1I tried deleting the folder .gradle in the application folder. Then I cleaned the project and build it again. IT WORKS FINE NOW.

    这篇关于Android Studio 2.1.3 中的构建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

    09-02 21:16