Skip to main content
Android Developers
Essentials
  • Build AI experiences
  • Build AI-powered Android apps with Gemini APIs and more.
  • Get started
  • Get started
  • Create your first app. Use Compose for UI and adaptive app development to support multiple device form factors.
  • Hello, world!
  • Developer Verification
  • Adaptive apps
  • Compose for UI
  • AI-powered IDE
  • Training
  • Monetization with Play ↗️
  • Optimize by form factor
  • Build apps that optimize the user experience on phones, tablets, foldables, cars, XR, and more.
  • Phones, tablets, foldables
  • Android for Cars
  • Android TV
  • Android XR
  • Googlebook
  • ChromeOS
  • Wear OS
  • Build by category
  • Learn to build for your use case by following Google's prescriptive and opinionated guidance.
  • Games
  • Camera & media
  • Social & messaging
  • Health & fitness
  • Productivity
  • Enterprise apps
  • Get the latest
  • Stay in touch with the latest releases throughout the year, join our preview programs, and give us your feedback.
  • Latest updates
  • Experimental updates
  • Android Studio preview
  • Jetpack & Compose libraries
  • Wear OS releases
  • Privacy Sandbox ↗️
Design & Plan
  • Excellent Experiences
  • Build the best experiences for your best users.
  • Learn more
  • UI Design
  • Design a beautiful user interface using Android best practices.
  • Design for Android
  • Mobile
  • Desktop experiences
  • XR Headsets & XR Glasses
  • AI Glasses
  • Widgets
  • Wear OS
  • Android TV
  • Android for Cars
  • Architecture
  • Design robust, testable, and maintainable app logic and services.
  • Introduction
  • Libraries
  • Navigation
  • Modularization
  • Testing
  • Kotlin Multiplatform
  • Quality
  • Plan for app quality and align with Play store guidelines.
  • Overview
  • Core value
  • User experience
  • Accessibility
  • Technical quality
  • Excellent Experiences
  • Security
  • Safeguard users against threats and ensure a secure Android experience.
  • Overview
  • Privacy
  • Permissions
  • Identity
  • Fraud prevention
Develop
  • Gemini in Android Studio
  • Your AI development companion for Android development.
  • Learn more
  • Get Android Studio
  • Core areas
  • Get the samples and docs for the features you need.
  • Samples
  • Multidevice support
  • User interfaces
  • Background work
  • Data and files
  • Connectivity
  • All core areas ⤵️
  • Tools and workflow
  • Use the IDE to write and build your app, or create your own pipeline.
  • Write and debug code
  • Build projects
  • Test your app
  • Performance
  • Command-line tools
  • Gradle plugin API
  • Android Bench
  • Device tech
  • Write code for form factors. Connect devices and share data.
  • Phones, tablets, foldables
  • ChromeOS
  • Android for Cars
  • Android TV
  • Android XR
  • Wear OS
  • Android Health
  • Better Together
  • All devices ⤵️
  • Libraries
  • Browse API reference documentation with all the details.
  • Android platform
  • Jetpack libraries
  • Compose libraries
  • Google Play services ↗️
  • Google Play SDK index ↗️
Google Play
  • Play Console
  • Publish your app or game and grow your business on Google Play.
  • Go to Play Console
  • Learn more ↗️
  • Fundamentals
  • Learn how to engage users, monitize, and secure your app.
  • Play Monetization
  • Play Integrity
  • Play Policies
  • Play Programs ↗️
  • Games Dev Center
  • Develop and deliver games. Get tools, downloads, and samples.
  • Overview
  • Play Asset Delivery
  • Play Games Services
  • Play Games on PC
  • All Play guides ⤵️
  • Libraries
  • Browse API reference documentation with all the details.
  • Play Feature Delivery
  • Play In-app Updates
  • Play In-app Reviews
  • Play Install Referrer
  • Google Play services ↗️
  • Google Play SDK index ↗️
  • All Play libraries ⤵️
  • Tools & resources
  • Tools for publishing, promoting, and managing your app.
  • Android App Bundles
  • Brand & marketing
  • Play Console APIs ↗️
Blog
  • the Android Developer's Blog
  • Read the latest
  • Explore the authors →
  • Explore categories
  • Case Studies
    Real-world results from real-world users. Explore how different teams use our tools to achieve their goals.
  • Events & Programs
    Get the details on upcoming webinars, workshops, meetups, and special initiatives designed to help you grow.
  • Product News
    Stay in the loop with the latest updates, feature releases, and behind-the-scenes looks at how we’re evolving.
  • Community
    Discover stories from our users, spotlight features, and the collaborative projects that bring us all together.
  • How-tos
    From quick tips to deep-dive tutorials, these step-by-step guides are designed to help you work smarter and faster.
/
  • English
  • Deutsch
  • Español – América Latina
  • Français
  • Indonesia
  • Italiano
  • Polski
  • Português – Brasil
  • Tiếng Việt
  • Türkçe
  • Русский
  • עברית
  • العربيّة
  • فارسی
  • हिंदी
  • বাংলা
  • ภาษาไทย
  • 中文 – 简体
  • 中文 – 繁體
  • 日本語
  • 한국어
Android Studio Sign in
  • Android Studio
Download IDE guides Gemini in Android Studio Agent tools and resources Android Studio preview Gradle build guides SDK tools guides
Android Developers
  • Essentials
    • More
  • Design & Plan
    • More
  • Develop
    • More
    • Download
    • IDE guides
    • Gemini in Android Studio
    • Agent tools and resources
    • Android Studio preview
    • Gradle build guides
    • SDK tools guides
  • Google Play
    • More
  • Blog
    • More
  • Android Studio
  • What's new in Android build
    • About Android Gradle plugin
    • Android Gradle plugin 9.2 release notes
    • Android Gradle plugin 9.3 (preview) release notes
    • Android Gradle plugin roadmap
    • Android Gradle plugin API updates
    • Past Android Gradle plugin releases
  • Android build overview
    • Gradle build overview
    • Android build structure
    • Tool and library interdependencies
    • Gradle dependency resolution
  • Manage your build
    • Configure the Android build system
    • Add annotation processors
    • Java versions in Android builds
    • Configure the app module
    • Manage manifest files
    • Apply custom build logic
    • Configure build variants
    • Include native symbols
    • Optimize app performance ⍈
    • D8 and R8 compiler version compatibility
    • Use the Android Gradle plugin Upgrade Assistant
    • Use the Android SDK Upgrade Assistant
    • Configure project-wide build properties
  • Manage dependencies
    • Add build dependencies
    • Add native dependencies
    • Manage remote repositories
    • Verify build dependencies
    • Upgrade build dependencies
  • Run your build
    • Build your app from the command line
    • Build your app for release to users
    • Build and run your app in Android Studio
  • Optimize your build
    • Overview
    • Troubleshoot build performance
    • Profile your build
    • Configure how R8 runs
    • Enable multidex
  • Extend your build
    • Write Gradle plugins
    • Gradle tips and recipes
    • Integrate a custom C/C++ build system
  • Publish your library
    • Overview
    • Prepare your library for release
    • Configure publication variants
    • Configure test fixtures for publication
    • Publish multiple Android libraries as one
    • Upload your library
  • Migrate your build
    • Migrate to built-in Kotlin
    • Migrate to the Kotlin DSL
    • Migrate to version catalogs
    • Migrate to Kotlin Symbol Processing
  • Troubleshoot
    • Overview
    • Debug dependency resolution errors
  • Android Gradle plugin API reference
  • Build AI experiences
  • Get started
  • Get started
  • Hello, world!
  • Developer Verification
  • Adaptive apps
  • Compose for UI
  • AI-powered IDE
  • Training
  • Monetization with Play ↗️
  • Optimize by form factor
  • Phones, tablets, foldables
  • Android for Cars
  • Android TV
  • Android XR
  • Googlebook
  • ChromeOS
  • Wear OS
  • Build by category
  • Games
  • Camera & media
  • Social & messaging
  • Health & fitness
  • Productivity
  • Enterprise apps
  • Get the latest
  • Latest updates
  • Experimental updates
  • Android Studio preview
  • Jetpack & Compose libraries
  • Wear OS releases
  • Privacy Sandbox ↗️
  • Excellent Experiences
  • Learn more
  • UI Design
  • Design for Android
  • Mobile
  • Desktop experiences
  • XR Headsets & XR Glasses
  • AI Glasses
  • Widgets
  • Wear OS
  • Android TV
  • Android for Cars
  • Architecture
  • Introduction
  • Libraries
  • Navigation
  • Modularization
  • Testing
  • Kotlin Multiplatform
  • Quality
  • Overview
  • Core value
  • User experience
  • Accessibility
  • Technical quality
  • Excellent Experiences
  • Security
  • Overview
  • Privacy
  • Permissions
  • Identity
  • Fraud prevention
  • Gemini in Android Studio
  • Learn more
  • Get Android Studio
  • Core areas
  • Samples
  • Multidevice support
  • User interfaces
  • Background work
  • Data and files
  • Connectivity
  • All core areas ⤵️
  • Tools and workflow
  • Write and debug code
  • Build projects
  • Test your app
  • Performance
  • Command-line tools
  • Gradle plugin API
  • Android Bench
  • Device tech
  • Phones, tablets, foldables
  • ChromeOS
  • Android for Cars
  • Android TV
  • Android XR
  • Wear OS
  • Android Health
  • Better Together
  • All devices ⤵️
  • Libraries
  • Android platform
  • Jetpack libraries
  • Compose libraries
  • Google Play services ↗️
  • Google Play SDK index ↗️
  • Play Console
  • Go to Play Console
  • Learn more ↗️
  • Fundamentals
  • Play Monetization
  • Play Integrity
  • Play Policies
  • Play Programs ↗️
  • Games Dev Center
  • Overview
  • Play Asset Delivery
  • Play Games Services
  • Play Games on PC
  • All Play guides ⤵️
  • Libraries
  • Play Feature Delivery
  • Play In-app Updates
  • Play In-app Reviews
  • Play Install Referrer
  • Google Play services ↗️
  • Google Play SDK index ↗️
  • All Play libraries ⤵️
  • Tools & resources
  • Android App Bundles
  • Brand & marketing
  • Play Console APIs ↗️
  • the Android Developer's Blog
  • Read the latest
  • Explore the authors →
  • Explore categories
  • Case Studies
  • Events & Programs
  • Product News
  • Community
  • How-tos
  • Android Developers
  • Develop
  • Android Studio
  • Gradle build guides

Apply custom build logic Stay organized with collections Save and categorize content based on your preferences.

This section describes advanced topics that are useful w