$ gradle --status
No Gradle daemons are running.
PID STATUS INFO
8027 STOPPED (stop command received)
9347 STOPPED (stop command received)
12448 STOPPED (stop command received)
11506 STOPPED (stop command received)
11727 STOPPED (by user or operating system)
4786 STOPPED (by user or operating system)
14569 STOPPED (by user or operating system)
31237 STOPPED (by user or operating system)
If you are stuck with gradle build running, you can to through this post: Stuck with Gradle Build Running
–
–
I solve it with another method in other post.
By removing folders like 4.4 4.6 5.4.1 5.5
in directory as below
/users/[username]/.gradle/daemon
java.lang.OutOfMemoryError: GC overhead limit exceeded
My problem solved only by changing gradle version from:
App\android\gradle\wrapper\gradle-wrapper.properties
old: distributionUrl=https://services.gradle.org/distributions/gradle-6.7-all.zip
new: distributionUrl=https://services.gradle.org/distributions/gradle-6.9-all.zip
–
For linux users
step 1 : cd ~ && rm -rf .gradle
step 2 : cd <to flutter working project directory>
step 3 : flutter run -v
then kill process with ctrl+c
.gradle dir will be created in /home/<user>/.gradle/wrapper/dists/gradle-<version>-all/9uukhhbclvbegdvsww0j0cr3p
step 4 : download gradle zip version on official website
step 5 : copy and paste the downloaded gradle inside /home/<user>/.gradle/wrapper/dists/gradle-<version>-all/9uukhhbclvbegdvsww0j0cr3p
step 6 : run flutter run -v
step 7 : everything is ok
Just add two lines in your app -> Gradle Scripts -> gradle properties
org.gradle.daemon=true
org.gradle.parallel=true
I created a new flutter project and migrated the previous data to the new folder, now it's working perfectly
Happy coding guys...
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.