在Android Studio 2.1.3中构建错误 [英] Build Error in Android Studio 2.1.3

查看:171
本文介绍了在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。

Error:Execution failed for task :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.InputFileDetails ay 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.1 I 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中构建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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