Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Gradle and AGP Build APIs - Live Q&A for MAD Skills

Android Developers via YouTube

Overview

Dive into a comprehensive Q&A session on Gradle and Android Gradle Plugin (AGP) Build APIs, featuring Android Developer Relations Engineer Florina Muntenescu and experts Murat Yener, Jerome Dochez, and Wojtek Kaliciński. Explore topics ranging from the importance of AGP APIs for regular developers to advanced build system concepts. Learn about computing values for resValue() and buildConfigField(), build system agnostic toolchains, ABI jar generation, remote execution with Gradle, and plugin compatibility across AGP versions. Gain insights on Gradle Kotlin DSL, Android Studio and IntelliJ integration, task identification in plugins, and AGP functionality. Discover solutions for large-scale projects, Android lint capabilities, dynamic feature modules, and default Kotlin Gradle setup. Get updates on the AGP 8 deprecation roadmap and troubleshoot common build errors. Perfect for Android developers seeking to enhance their understanding of Gradle and AGP build processes.

Syllabus

- Introduction
- As a regular Android developer, do I need to know all of those new AGP APIs? What is the benefit?
- How can I compute a value which is set as resValue or buildConfigField? Eg: I want to compute the local ip the system build is running in and set it via buildConfigField
- Are you considering making a build system agnostic toolchain so we can more easily make another build system build Android libraries and apps?
- Kotlin supports generating ABI jars and few build systems like Bazel already use it for compile avoidance. Could this be integrated with Gradle/AGP?
- Has Google considered any official first party solutions for remote execution with Gradle?
- Will the dynamic feature Gradle plugin ever be fixed so those modules do *not* require a dependency on the app module? Or stop breaking the uniquePackageNames feature?
- What's the recommended way to write plugins that should be compatible with multiple AGP versions?
- What about library upgrade suggestions for Gradle Kotlin DSL? Is that arriving anytime soon? Also maybe an easier way to migrate to it in Studio?
- Are there any plans to bring Android Studio and IntelliJ closer one to another? Ideally being able to use the latest AGP in IntelliJ?
- Is there some way to know which plugin added which task without reading plugin source code/docs?
- How does AGP work?
- Has Google tried switching from Bazel to Gradle for apps w/ thousands of modules to see where pain points are? Is there any way to do an incremental sync of a Gradle project when you add a new module?
- Can Android lint run against JVM only modules so it flags minSDK/desugaring issues w/ Java code?
- Is it possible to include different modules in different flavors using setDynamicFeatures?
- How do I make my Android Studio create a project using Kotlin Gradle by default?
- I saw the Android Gradle Plugin Roadmap page on developer.android.com, but can you talk a little bit more about the deprecation that's going to happen in AGP 8? How much work will be needed?
- I tried building my project, but the build failed and I got an error like "this is not compatible with Gradle 8.0" when my Gradle version is 7.0.3. What could be the cause?

Taught by

Android Developers

Reviews

Start your review of Gradle and AGP Build APIs - Live Q&A for MAD Skills

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.