hi, guys. I encounter a problem with the command ...
# general
r
hi, guys. I encounter a problem with the command
./gradlew --clean --stacktrace
. Can anyone take a look? Tks !
Copy code
FAILURE: Build failed with an exception.

* What went wrong:
Java heap space

* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Exception is:
java.lang.OutOfMemoryError: Java heap space
        at java.util.ArrayList.<init>(ArrayList.java:153)
        at org.gradle.launcher.daemon.registry.DaemonRegistryContent$Serializer.readStopEvents(DaemonRegistryContent.java:128)
        at org.gradle.launcher.daemon.registry.DaemonRegistryContent$Serializer.read(DaemonRegistryContent.java:120)
        at org.gradle.launcher.daemon.registry.DaemonRegistryContent$Serializer.read(DaemonRegistryContent.java:113)
        at org.gradle.cache.internal.SimpleStateCache.deserialize(SimpleStateCache.java:144)
        at org.gradle.cache.internal.SimpleStateCache.access$000(SimpleStateCache.java:34)
        at org.gradle.cache.internal.SimpleStateCache$1.create(SimpleStateCache.java:52)
        at org.gradle.cache.internal.DefaultFileLockManager$DefaultFileLock.readFile(DefaultFileLockManager.java:193)
        at org.gradle.cache.internal.OnDemandFileAccess.readFile(OnDemandFileAccess.java:43)
        at org.gradle.cache.internal.SimpleStateCache.get(SimpleStateCache.java:49)
        at org.gradle.cache.internal.FileIntegrityViolationSuppressingPersistentStateCacheDecorator.get(FileIntegrityViolationSuppressingPersistentStateCacheDecorator.java:34)
        at org.gradle.launcher.daemon.registry.PersistentDaemonRegistry.getAll(PersistentDaemonRegistry.java:71)
        at org.gradle.launcher.daemon.client.DefaultDaemonConnector.maybeConnect(DefaultDaemonConnector.java:100)
        at org.gradle.launcher.daemon.client.DaemonStopClient.stop(DaemonStopClient.java:102)
        at org.gradle.launcher.cli.StopDaemonAction.run(StopDaemonAction.java:29)
        at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:212)
        at org.gradle.launcher.cli.DefaultCommandLineActionFactory$ParseAndBuildAction.execute(DefaultCommandLineActionFactory.java:275)
        at org.gradle.launcher.cli.DefaultCommandLineActionFactory$ParseAndBuildAction.execute(DefaultCommandLineActionFactory.java:247)
        at org.gradle.launcher.cli.DebugLoggerWarningAction.execute(DebugLoggerWarningAction.java:82)
        at org.gradle.launcher.cli.DebugLoggerWarningAction.execute(DebugLoggerWarningAction.java:30)
        at org.gradle.launcher.cli.WelcomeMessageAction.execute(WelcomeMessageAction.java:92)
        at org.gradle.launcher.cli.WelcomeMessageAction.execute(WelcomeMessageAction.java:38)
        at org.gradle.launcher.cli.NativeServicesInitializingAction.execute(NativeServicesInitializingAction.java:44)
        at org.gradle.launcher.cli.NativeServicesInitializingAction.execute(NativeServicesInitializingAction.java:26)
        at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:41)
        at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:26)
        at org.gradle.launcher.cli.DefaultCommandLineActionFactory$WithLogging.execute(DefaultCommandLineActionFactory.java:240)
        at org.gradle.launcher.Main.doAction(Main.java:35)
        at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:50)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
I want to build apk by using
flutter build apk
. It was a success at the beginning. Then my computer freezes and I try to restart my computer and there is a java heap problem.
cc @Vampire Can you please take a look?
I solved it by delete the
.gradle/daemon
v
Why are you pinging me out of the blue? That's pretty rude. I'm neither a paid supporter nor a Gradle employee. Open a bug report in the issue tracker.