Chapter 2. Basic Build Customization

We started out by looking at the uses of Gradle, and creating and converting Android projects. Now it is time to get a better understanding of the build files, to look at some useful tasks, and to explore the possibilities of both Gradle and the Android plugin.

In this chapter, we will look at the following topics:

  • Understanding the Gradle files
  • Getting started with build tasks
  • Customizing the build

Understanding the Gradle files

When creating a new project with Android Studio, three Gradle files are generated by default. Two of those files, settings.gradle and build.gradle, end up on the top level of the project. Another build.gradle file is created in the Android app module. This is how the Gradle files are placed ...

Get Gradle for Android now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.