Gradle for Android

Video description

Whether you’re new to Gradle or an experienced Android developer, Java consultant Ken Kousen will help you get better acquainted with the Gradle automated build system. With “enough Groovy to get by,” you’ll learn Groovy’s relationship to Java and how it defines both static and dynamic variables. You’ll also build and run a simple Android app, test it, and modify it to add capabilities. The video includes:

  • Gradle basics: use a Gradle build for a Java project, define custom tasks and insert them into the Gradle directed acyclic graph, and add plugins using a buildscript
  • Build types: create debug-and-release Android application packages (APK), and learn how to sign and prepare a release APK
  • Run tests: test non-user interface components, specifically data access layers
  • Use a third-party UI testing library: test UI components, and run tests on all connected devices simultaneously
  • Define multiple flavors: create different versions of the same application, change images and other resources, and generate multiple APKs

In addition to learning how to build multi-module projects, you’ll also add an Android library project to a top-level project, and use it to access a web service and update the UI.

Ken Kousen, president of Kousen IT, Inc., is a technical trainer, mentor, and consultant in all areas related to Java, specializing in Android, Spring, Hibernate/JPA, Groovy, and Grails. He is the author of Making Java Groovy (Manning) and the upcoming O’Reilly book, Gradle for Android.

Publisher resources

View/Submit Errata

Product information

  • Title: Gradle for Android
  • Author(s):
  • Release date: August 2015
  • Publisher(s): O'Reilly Media, Inc.
  • ISBN: 9781491941102