Pelik benar masalah ni tak boleh build Gradle dengan error seperti di bawah:

Penyelesaian :

Setelah puas menggodek akhirnya baru Tedi perasan bahawa command gradle tu run dalam folder System32, puncanya kerana Tedi tidak sertakan command untuk tukar directory, sepatutnya kena letak dulu E: sebab nak run dalam directory E:. Masalah ini berlaku sebab Tedi tukar komputer (notebook/laptop) riba dan skrip masih kekal yang lama.

Error :

C:\WINDOWS\system32>cd E:\IdeaProjects\BackendService\web-ext C:\WINDOWS\system32>call gradle --refresh-dependencies --stacktrace clean deploy -Penv=dev FAILURE: Build failed with an exception. * What went wrong: Could not update time stamp for C:\Windows\System32\.gradle\4.10.3\gc.properties * Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Exception is: org.gradle.api.UncheckedIOException: Could not update time stamp for C:\Windows\System32\.gradle\4.10.3\gc.properties at org.gradle.util.GFileUtils.touchExisting(GFileUtils.java:68) at org.gradle.util.GFileUtils.touch(GFileUtils.java:55) at org.gradle.cache.internal.VersionSpecificCacheCleanupAction.markCleanedUp(VersionSpecificCacheCleanupAction.java:90) at org.gradle.cache.internal.VersionSpecificCacheCleanupAction.performCleanup(VersionSpecificCacheCleanupAction.java:104) at org.gradle.cache.internal.VersionSpecificCacheCleanupAction.execute(VersionSpecificCacheCleanupAction.java:72) at org.gradle.initialization.layout.ProjectCacheDir.stop(ProjectCacheDir.java:49) at org.gradle.internal.concurrent.CompositeStoppable.stop(CompositeStoppable.java:103) at org.gradle.internal.service.DefaultServiceRegistry$ManagedObjectServiceProvider.stop(DefaultServiceRegistry.java:594) at org.gradle.internal.concurrent.CompositeStoppable.stop(CompositeStoppable.java:103) at org.gradle.internal.service.DefaultServiceRegistry$OwnServices.stop(DefaultServiceRegistry.java:486) at org.gradle.internal.concurrent.CompositeStoppable.stop(CompositeStoppable.java:103) at org.gradle.internal.service.DefaultServiceRegistry$CompositeServiceProvider.stop(DefaultServiceRegistry.java:952) at org.gradle.internal.concurrent.CompositeStoppable.stop(CompositeStoppable.java:103) at org.gradle.internal.service.DefaultServiceRegistry.close(DefaultServiceRegistry.java:254) at org.gradle.internal.concurrent.CompositeStoppable$2.stop(CompositeStoppable.java:88) at org.gradle.internal.concurrent.CompositeStoppable.stop(CompositeStoppable.java:103) at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:67) at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:34) at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:36) at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:25) at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:43) at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:29) at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:59) at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:31) at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:59) at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:44) at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:46) at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:30) at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74) at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72) at org.gradle.util.Swapper.swap(Swapper.java:38) at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:62) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:81) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50) at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:295) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55) * Get more help at https://help.gradle.org BUILD FAILED in 2s Press any key to continue . . .