Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
codeBoy7848yThat's absolutely true :D
Anyway They say the next version of gradle will be faster... hope its true -
@Pythoneer That's a damn funny comment 😂.
Anyway,gradle daemon is a bit faster -
@codeBoy Gradle daemon is a long running process is the background.It can improve build times because of 2 reasons:
1. You don't have to wake up the JVM each time you build
2.The project is cached in memory, therefore subsequent builds build upon previous previous -
@codeBoy To use gradle daemon
-go to /home/username/.gradle
-open or create a file gradle.properties
- Add this line to the file "org.gradle.daemon=true"
Next time you build, gradle will use the daemon.
However it usually stops after a long time of not using it.(like 3 hours) -
codeBoy7848y@bdhobare thanks dear for your help:)
I read that gradle builds can be done also from command line using a gradle script in the project folder
Would that be faster or this is irrelevant ? -
@codeBoy Yea.. you can build from the terminal.Go to your project root and type ./gradlew <task>
You can find tasks with gradlew tasks.
IMO.. executing from the terminal doesn't have any extraordinary advantages.In fact it's harder to deploy your app that way.
Related Rants
Google should pay us for every second we waste by running a Gradle build in Android Studio.
undefined
fml
android
build
gradle