Chapter 9. Advanced Build Customization

Now that you know how Gradle works, how to create your own tasks and plugins, how to run tests, and how to set up continuous integration, you can almost call yourself a Gradle expert. This chapter contains a few tips and tricks that we have not mentioned in the previous chapters that make it easier to build, develop, and deploy Android projects using Gradle.

In this chapter, we will cover the following topics:

  • Reducing the APK file size
  • Speeding up builds
  • Ignoring Lint
  • Using Ant from Gradle
  • Advanced app deployment

We will start out by looking at how we can reduce the size of the build output and why that is useful.

Reducing the APK file size

The size of APK files has been increasing dramatically in the last few years. ...

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.