gpt4 book ai didi

android - 无法运行项目应用程序(Gradle 构建失败)

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:51:58 24 4
gpt4 key购买 nike

今天我将我的 Android Studio 更新到 2.2.. 我不确定这是因为更新但我在运行应用程序时遇到了这个错误

Information:Gradle tasks [:app:clean, :app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources, :app:assembleDebug]
Error:Execution failed for task ':app:transformClassesWithJavaResourcesVerifierForDebug'.
> 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.)
<a href="syncProject">Re-download dependencies and sync project (requires network)</a></li><li>The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
<a href="stopGradleDaemons">Stop Gradle build processes (requires restart)</a></li><li>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.</li></ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
Information:BUILD FAILED
Information:Total time: 7.336 secs
Information:1 error
Information:0 warnings
Information:See complete output in console

我正在尝试清理和重建应用程序,但没有任何影响

最佳答案

删除 .gradle 文件夹,然后清理并运行...也许它会对您有所帮助。谢谢。

关于android - 无法运行项目应用程序(Gradle 构建失败),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39610365/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com