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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.