2016-09-21 43 views
4

我更新了我的工作室的Android 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 

我我得到這個錯誤試圖清理和重建應用程序,但沒有任何影響

回答

12

刪除.gradle文件夾,然後清理並運行...也許它會幫助你。謝謝。

4
  1. 關閉Android Studio中,如果它打開

  2. 轉到項目工作區(如:C:\ wheverever \它\是\ TheProjectName)

  3. 刪除.gradle文件夾

  4. 打開Android Studio。 清理並製作您的項目。

+0

謝謝你的回答,我已經刪除了它,但它不給任何改變。我仍然得到的是 – Ampersanda

+0

的gradle這個錯誤沒有構建任何應用程序或僅這一項? – Mithun

+0

它只發生在這個應用程序 – Ampersanda