today i faced with the problem i use android studio 0.3.7 with gradle-1.8 on win 7 x64 i have jdk 1.7u45, jre 7, jdk 1.6u35 and jr6 (this installed automaticly by some software) on compileRelease stage of one module i have next error:
FAILURE: Build aborted because of an internal error.
-
What went wrong: Build aborted because of an unexpected internal error. Please file an issue at: http://forums.gradle.org.
-
Try: Run with --debug option to get additional debug info.
-
Exception is: java.lang.ClassCastException: org.gradle.api.internal.changedetection.state.Defa ultFileSnapshotter$FileCollectionSnapshotImpl cannot be cast to org.gradle.api.i nternal.changedetection.state.OutputFilesSnapshotter$OutputFilesSnapshot
at org.gradle.api.internal.changedetection.state.OutputFilesSnapshotter$ OutputFilesSnapshot.iterateChangesSince(OutputFilesSnapshotter.java:103)
at org.gradle.api.internal.changedetection.rules.OutputFilesStateChangeR ule$1$1.(OutputFilesStateChangeRule.java:44)
at org.gradle.api.internal.changedetection.rules.OutputFilesStateChangeR ule$1.iterator(OutputFilesStateChangeRule.java:43)
at org.gradle.api.internal.changedetection.rules.CachingTaskStateChanges .reset(CachingTaskStateChanges.java:79)
at org.gradle.api.internal.changedetection.rules.CachingTaskStateChanges .iterator(CachingTaskStateChanges.java:44)
at org.gradle.api.internal.changedetection.rules.SummaryTaskStateChanges .firstDirtyIterator(SummaryTaskStateChanges.java:63)
at org.gradle.api.internal.changedetection.rules.SummaryTaskStateChanges .access$000(SummaryTaskStateChanges.java:25)
at org.gradle.api.internal.changedetection.rules.SummaryTaskStateChanges $1.computeNext(SummaryTaskStateChanges.java:49)
at org.gradle.api.internal.changedetection.rules.SummaryTaskStateChanges $1.computeNext(SummaryTaskStateChanges.java:42)
at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractI terator.java:143)
at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.j ava:138)
at org.gradle.api.internal.changedetection.changes.DefaultTaskArtifactSt ateRepository$TaskArtifactStateImpl.getChangeMessages(DefaultTaskArtifactStateRe pository.java:80)
at org.gradle.api.internal.changedetection.changes.DefaultTaskArtifactSt ateRepository$TaskArtifactStateImpl.isUpToDate(DefaultTaskArtifactStateRepositor y.java:69)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.exec ute(SkipUpToDateTaskExecuter.java:52)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execut e(ValidatingTaskExecuter.java:58)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecu ter.execute(SkipEmptySourceFilesTaskExecuter.java:42)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter .execute(SkipTaskWithNoActionsExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execut e(SkipOnlyIfTaskExecuter.java:53)
at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter .execute(ExecuteAtMostOnceTaskExecuter.java:43)
at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailur e(AbstractTask.java:283)
at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorW orker.executeTask(AbstractTaskPlanExecutor.java:79)
at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorW orker.processTask(AbstractTaskPlanExecutor.java:63)
at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorW orker.run(AbstractTaskPlanExecutor.java:51)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$1.run(DefaultT askPlanExecutor.java:33)
at org.gradle.internal.Factories$1.create(Factories.java:22)
at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(Def aultCacheAccess.java:214)
at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(Def aultCacheAccess.java:276)
at org.gradle.cache.internal.DefaultPersistentDirectoryStore.longRunning Operation(DefaultPersistentDirectoryStore.java:142)
at org.gradle.api.internal.changedetection.state.DefaultTaskArtifactStat eCacheAccess.longRunningOperation(DefaultTaskArtifactStateCacheAccess.java:78)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(Defaul tTaskPlanExecutor.java:31)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(Defau ltTaskGraphExecuter.java:86)
at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTask ExecutionAction.java:29)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute r.java:61)
at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExec uter.java:23)
at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecu ter.java:67)
at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildEx ecutionAction.java:32)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute r.java:61)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute r.java:54)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(Default GradleLauncher.java:166)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradle Launcher.java:113)
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLaun cher.java:81)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildCon troller.run(InProcessBuildActionExecuter.java:64)
at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.jav a:33)
at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.jav a:24)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProce ssBuildActionExecuter.java:35)
at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBu ild.java:45)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(Build CommandOnly.java:34)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed (DaemonCommandExecution.java:125)
at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute( WatchForDisconnection.java:42)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed (DaemonCommandExecution.java:125)
at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute (ResetDeprecationLogger.java:24)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed (DaemonCommandExecution.java:125)
at org.gradle.launcher.daemon.server.exec.StartStopIfBuildAndStop.execut e(StartStopIfBuildAndStop.java:33)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed (DaemonCommandExecution.java:125)
at org.gradle.launcher.daemon.server.exec.ReturnResult.execute(ReturnRes ult.java:34)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed (DaemonCommandExecution.java:125)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(Forw ardClientInput.java:71)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(Forw ardClientInput.java:69)
at org.gradle.util.Swapper.swap(Swapper.java:38)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(For wardClientInput.java:69)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed (DaemonCommandExecution.java:125)
at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClien t.java:60)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(Build CommandOnly.java:34)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed (DaemonCommandExecution.java:125)
at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBu ild(EstablishBuildEnvironment.java:59)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(Build CommandOnly.java:34)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed (DaemonCommandExecution.java:125)
at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1. run(StartBuildOrRespondWithBusy.java:45)
at org.gradle.launcher.daemon.server.DaemonStateCoordinator.runCommand(D aemonStateCoordinator.java:186)
at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy.do Build(StartBuildOrRespondWithBusy.java:49)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(Build CommandOnly.java:34)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed (DaemonCommandExecution.java:125)
at org.gradle.launcher.daemon.server.exec.HandleStop.execute(HandleStop. java:36)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed (DaemonCommandExecution.java:125)
at org.gradle.launcher.daemon.server.exec.CatchAndForwardDaemonFailure.e xecute(CatchAndForwardDaemonFailure.java:32)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed (DaemonCommandExecution.java:125)
at org.gradle.launcher.daemon.server.exec.DefaultDaemonCommandExecuter.e xecuteCommand(DefaultDaemonCommandExecuter.java:48)
at org.gradle.launcher.daemon.server.DefaultIncomingConnectionHandler$Co nnectionWorker.handleCommand(DefaultIncomingConnectionHandler.java:155)
at org.gradle.launcher.daemon.server.DefaultIncomingConnectionHandler$Co nnectionWorker.receiveAndHandleCommand(DefaultIncomingConnectionHandler.java:128 )
at org.gradle.launcher.daemon.server.DefaultIncomingConnectionHandler$Co nnectionWorker.run(DefaultIncomingConnectionHandler.java:116)
at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecut orImpl$1.run(DefaultExecutorFactory.java:66)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor. java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:615)
at java.lang.Thread.run(Thread.java:724)
BUILD FAILED
i try clean (gradlw clean, physical remove all caches from disk, remove gradle cache, remove gradle and download it again), but error still there and i cannot compile my project.
in project exist several modules, and all previous modules compiled success