

With Gradle, you can easily manipulate the build process and its logic to create multiple versions of your app. It brings the convenience of a Groovy-based DSL along with the advantages of Ant and Maven. Gradle is an open source build automation system. If you are completely new to Android development, read through our Beginning Android Development tutorials to familiarize yourself with the basics. Update the settings.Note: This tutorial assumes you’re already familiar with the basics of Android development. This plugin must be applied in the adle file of the project. This is a change from the previous tutorial, so you will be prompted to update the project files.įirst, change the last line in the file gradle/wrapper/gradle-wrapper.properties to: distributionUrl=https\:///distributions/Īnother change is that we will use as the plugin ID. Setting up Gradle build cacheįor this tutorial, we are using Gradle version 6.7. Note: If the app does not run on Android Studio, invalidate the cache and restart by selecting Invalidate cache/Restart from the File menu. To get started, click the Run button on Android Studio.

We will also use Gradle’s build cache documentation.

Using the build cache can benefit you by: The build cache gives you the ability to avoid the redundant work and cost of regenerating time-consuming and expensive processes. It works by storing (locally or remotely) build outputs, and allowing builds to fetch these outputs from the cache when it determines that inputs have not changed.

The Gradle Build Cache is designed to help you save time by reusing outputs produced by previous builds.
