If you install the Android SDK without ANdroid Studio you have to install Gradle seperatly. Download Gradle from the offical Gradle website. Environment Variables. Now that everything’s installed, we’ll need to set some environment variables for our command line. Open your terminal and enter the following. Highly customizable — Gradle is modeled in a way that is customizable and extensible in the most fundamental ways. Fast — Gradle completes tasks quickly by reusing outputs from previous executions, processing only inputs that changed, and executing tasks in parallel. Powerful — Gradle is the official build tool for Android, and comes with support for many popular languages. Open a second File Explorer window and go to the directory where the Gradle distribution was downloaded. Double-click the ZIP archive to expose the content. Drag the content folder gradle-6.7 to your newly created C: Gradle folder. Alternatively you can unpack the Gradle distribution ZIP into C: Gradle using an archiver tool of your choice.
The current Gradle release is 6.7. You can download binaries and view docs for all Gradle versions from the releases page.
Prerequisites
Gradle runs on all major operating systems and requires only a Java JDK version 8 or higher to be installed. To check, run
java -version
:Additional resources
- On-demand and live online training is available for free to Gradle users.
- Self-paced tutorials are a good place to try Gradle with a variety of languages in addition to the docs.
- Gradle has a new visual build inspection tool called build scans.
- Finally, the Gradle Newsletter is a great way to keep
UP-TO-DATE
, with issues crafted monthly.
Installing with a package manager
SDKMAN! is a tool for managing parallel versions of multiple Software Development Kits on most Unix-based systems.
Homebrew is “the missing package manager for macOS”.
Other package managers are available, but the version of Gradle distributed by them is not controlled by Gradle, Inc. Linux package managers may distribute a modified version of Gradle that is incompatible or incomplete when compared to the official version (available from SDKMAN! or below).
› Additional helpful information
Installing manually
Step 1. Download the latest Gradle distribution
The current Gradle release is version 6.7, released on 14 Oct 2020. The distribution zip file comes in two flavors:
- Complete, with docs and sources
If in doubt, choose the binary-only version and browse docs and sources online.
Need to work with an older version? See the releases page.
Step 2. Unpack the distribution
Linux & MacOS users
![Path Path](/uploads/1/2/7/7/127787765/281873592.jpg)
Unzip the distribution zip file in the directory of your choosing, e.g.:
Microsoft Windows users
Create a new directory
C:Gradle
with File Explorer.Open a second File Explorer window and go to the directory where the Gradle distribution was downloaded. Double-click the ZIP archive to expose the content. Drag the content folder
gradle-6.7
to your newly created C:Gradle
folder.Alternatively you can unpack the Gradle distribution ZIP into
C:Gradle
using an archiver tool of your choice.Step 3. Configure your system environment
Gradle 6.3 Download
Linux & MacOS users
Configure your
PATH
environment variable to include the bin
directory of the unzipped distribution, e.g.:Microsoft Windows users
In File Explorer right-click on the
This PC
(or Computer
) icon, then click Properties
-> Advanced System Settings
-> Environmental Variables
.Under
System Variables
select Path
, then click Edit
. Add an entry for C:Gradlegradle-6.7bin
. Click OK to save.Gradle Mac Download Version
Step 4. Verify your installation
Open a console (or a Windows command prompt) and run
gradle -v
to run gradle and display the version, e.g.:› Additional helpful information
Upgrade with the Gradle Wrapper
If your existing Gradle-based build uses the Gradle Wrapper, you can easily upgrade by running the
wrapper
task, specifying the desired Gradle version:Note that it is not necessary for Gradle to be installed to use the Gradle wrapper. The next invocation of
gradlew
or gradlew.bat
will download and cache the specified version of Gradle.› Additional helpful information
Older Releases
You can find all releases and their checksums on the releases page.
Command-Line Completion
Command-line completion scripts are available for bash and zsh. This provides completion for Gradle tasks and command-line options.
From mobile apps to microservices, from small startups to big enterprises, Gradle helps teams build, automate and deliver better software, faster.
Build Anything
Write in Java, C++, Python or your language of choice. Package for deployment on any platform. Go monorepo or multi-repo. And rely on Gradle's unparalleled versatility to build it all.
Automate Everything
Use Gradle's rich API and mature ecosystem of plugins and integrations to get ambitious about automation. Model, integrate and systematize the delivery of your software from end to end.
Deliver Faster
Scale out development with elegant, blazing-fast builds. From compile avoidance to advanced caching and beyond, we pursue performance relentlessly so your team can deliver continuously.
Trusted by millions of developers
![Mac download game Mac download game](/uploads/1/2/7/7/127787765/117275620.jpg)
Gradle has been counted in the top 20 open-source projects and is trusted by millions of developers to build software for billions of people.
10+ Million downloads/month
Top 20 Open-Source projects
Stay in Flow
Enjoy first-class Gradle support in your IDE of choice.
Make the Move
Considering migrating from Maven? We've got resources to help.
We do truly feel that Gradle is the best build system for the JVM…
At LinkedIn we want to radically change the definition and eliminate these deficiencies in the system both when it comes to releasing software and developing software every day. There is a lot of buzz around continuous delivery and deployment and I think Gradle is instrumental on the development side, on the micro level, and the day-to-day on how we can eliminate the deficiencies in the system.
Keep up the great work. Gradle is one of my very favorite tools, and finding a developer who doesn't yet use Gradle is like finding a movie fan who hasn't yet seen The Godfather—'Oh my God! Stop everything and watch this!'
Join 80,000+ monthly Gradle newsletter subscribers.
By entering your email, you agree to our Terms and Privacy Policy, including receipt of emails. You can unsubscribe at any time.