Preface
About the Book
This book contains recipes for working with the Gradle build system for Android projects. Gradle is one of the most popular tools for building applications from the Java world, and is expanding into other languages like C++. The Android team at Google adopted Gradle as the preferred build system for Android in the spring of 2013, and its use has grown steadily since then.
Since Gradle comes from the Groovy ecosystem, many Android developers may not be familiar with it. Groovy, however, is very easy for existing Java developers to learn. The purpose of this book is to provide examples that help you use Gradle to accomplish the most common build tasks for Android applications.
All code examples use Android SDK version 23, with emulators from either Marshmallow (Android 6) or Lollipop (Android 5.*). Android Studio versions 2.0 or 2.1 (beta) were used as the primary IDE, which included Gradle version 2.10 or above as the build tool.
Prerequisites
The Gradle plugin for Android involves at least some knowledge of Java, Groovy, Gradle, and Android. Since entire books are available for each of those topics, they can’t all be covered in detail here.
The text in this book is aimed chiefly at developers who are comfortable with Android development. Very little Android background is provided, though complete code listings of all examples are available through the book’s GitHub repository. Understanding Android means understanding Java, so that background is assumed ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access