Book description
Android adopted Gradle as the preferred build automation system a few years ago, but many Android developers are still unfamiliar with this open source tool. This hands-on guide provides a collection of Gradle recipes to help you quickly and easily accomplish the most common build tasks for your Android apps. You’ll learn how to customize project layouts, add dependencies, and generate many different versions of your app.
Gradle is based on Groovy, yet very little knowledge of the JVM language is required for you to get started. Code examples use Android SDK version 23, with emulators from Marshmallow (Android 6) or Lollipop (Android 5). If you’re comfortable with Java and Android, you’re ready.
- Understand Gradle’s generated build files for Android apps
- Run Gradle from the command line or inside Android Studio
- Add more Java libraries to your Android app
- Import and export Eclipse ADT projects
- Digitally sign a Release APK for the Google Play store
- Use product flavors to build many versions of the same app
- Add custom tasks to the Gradle build process
- Test both your app’s Android and non-Android components
- Improve the performance of your Gradle build
Publisher resources
Table of contents
- Foreword
- Preface
-
Gradle for Android Basics
- 1.1. Gradle Build Files in Android
- 1.2. Configure SDK Versions and Other Defaults
- 1.3. Executing Gradle Builds from the Command Line
- 1.4. Executing Gradle Builds from Android Studio
- 1.5. Adding Java Library Dependencies
- 1.6. Adding Library Dependencies Using Android Studio
- 1.7. Configuring Repositories
- From Project Import to Release
- Build Types and Flavors
- Custom Tasks
- Testing
- Performance and Documentation
- Just Enough Groovy to Get By
- Gradle Basics
- Index
Product information
- Title: Gradle Recipes for Android
- Author(s):
- Release date: June 2016
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491947029
You might also like
video
Gradle for Android
Whether you’re new to Gradle or an experienced Android developer, Java consultant Ken Kousen will help …
book
Gradle for Android
Automate the build process for your Android projects with Gradle In Detail Gradle is an open …
book
Gradle Beyond the Basics
If you’re familiar with Gradle’s basics elements—possibly through the author’s previous O’Reilly book, Building and Testing …
book
High Performance Android Apps
Unique and clever ideas are important when building a hot-selling Android app, but the real drivers …