The answer is here.
Thanks to @usamember - I understood him wrongly.
BIG EDIT: To stop the Gradle sync on Android Studio startup -> https://stackoverflow.com/a/39400099/6486232
But to stop it while using Android Studio, complete reading this answer.
@usamember meant to download the Gradle Terminal files first, and that can be done by typing the command which he provided, gradlew
It took 15 minutes for me to finish, (it depends on your internet connection).
Now you can easily type gradlew --stop
The result was:
F:\AndroidStudioProjects\RodentsMobile\RodentsMobile>gradlew --stop
Downloading https://services.gradle.org/distributions/gradle-2.14.1-all.zip
.....................................................................................................................................
.....................................................................................................................................
.....................................................................................................................................
.....................................................................................................................................
.....................................................................................................................................
.....................................................................................................................................
.....................................................................................................................................
.....................................................................................................................................
.....................................................................................................................................
.....................................................................................................................................
.....................................................................................................................................
.....................................................................................................................................
.....................................................................................................................................
.....................................................................................................................................
.....................................................................................................................................
.....................................................................................................................................
.....................................................................................................................................
.....................................................................................................................................
.....................................................................................................................................
.....................................................................................................................................
.....................................................................................................................................
.....................................................................................................................................
.....................................................................................................................................
.....................................................................................................................................
.....................................................................................................................................
..............................................................................................................................
Unzipping C:\Users\HP\.gradle\wrapper\dists\gradle-2.14.1-all\8bnwg5hd3w55iofp58khbp6yv\gradle-2.14.1-all.zip to C:\Users\HP\.gradle\
wrapper\dists\gradle-2.14.1-all\8bnwg5hd3w55iofp58khbp6yv
Stopping daemon(s).
Gradle daemon stopped.
F:\AndroidStudioProjects\RodentsMobile\RodentsMobile>M`O^\MaO^ZMaO^\MaO^^MaO MaO"MaO%MaO&MaO'MaO'MaO'M`f^YM`f
'M`OMaO' is not recognized as an internal or external command,
operable program or batch file.
Here is the success info:
Stopping daemon(s).
Gradle daemon stopped.
Starting Gradle daemon back is more simple.
- Type
gradlew
or gradlew --daemon
in the Terminal
EDIT: Another way of starting Gradle back without errors, is trying to build your Android application.
- If you got an error like that:
FAILURE: Build failed with an exception.
What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/2.14.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for 1572864KB object heap
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Then start Android Studio as Administrator and type gradlew
or gradlew --daemon
again.
EDIT: Another way of starting Gradle back without errors, is trying to build your Android application.