O'Reilly logo

Gradle for Android by Kevin Pelgrims

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required