The script runs and looking for a gradle in your system. If you are in the Android Studio project folder, Open your command prompt and Just type gradlew and press enter.
gradlew is also responsible for downloading gradle from the Internet. Using those commands we can make Gradle work. It has the ability to pass commands to gradle. You could find it on the Android Studio project’s root directory. In Mac and Linux, it available in the form of a shell.
When you click the run button, Android Studio delegates power to gradle and wait for it to finish just like us. Gradle is a build tool which makes APK using our source code and resources like layouts, images by giving them to suitable tools. Yes, this is really interesting and It will be useful in the long run.īefore that, let’s make a simple talk about Gradle and gradlew. So in this post, I will tell you a way that I am using which reduced my APK build time. after that, I got to know we can run the project using Commands. Then I learned about the Gradle build system. That affected my productivity very badly.Įnd of the day, I feel miserable, nothing is done, Still waiting for gradle build completion.Īt that time, Just like any other beginner, I searched on Google “How to reduce Android build time”. In my old PC, Waiting has passed more than 30 minutes. One minute is gone, two minutes, three minutes. When I hit the run button, I sit and wait for gradle to get finished. If you have a low-end pc, then this time increases. Share on Facebook Share on Twitter Pinterest Emailĭoes your Android Studio takes a lot of time to build and run?