> ## Documentation Index
> Fetch the complete documentation index at: https://bazel-pr-29770.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Android and Bazel

This page contains resources that help you use Bazel with Android projects. It
links to a tutorial, build rules, and other information specific to building
Android projects with Bazel.

<h2 id="getting-started">
  Getting started
</h2>

The following resources will help you work with Bazel on Android projects:

* [Tutorial: Building an Android app](/versions/8.4.2/start/android-app). This
  tutorial is a good place to start learning about Bazel commands and concepts,
  and how to build Android apps with Bazel.
* [Codelab: Building Android Apps with Bazel](https://developer.android.com/codelabs/bazel-android-intro#0).
  This codelab explains how to build Android apps with Bazel.

<h2 id="features">
  Features
</h2>

Bazel has Android rules for building and testing Android apps, integrating with
the SDK/NDK, and creating emulator images. There are also Bazel plugins for
Android Studio and IntelliJ.

* [Android rules](/versions/8.4.2/reference/be/android). The Build Encyclopedia describes the rules
  for building and testing Android apps with Bazel.
* [Integration with Android Studio](/versions/8.4.2/install/ide). Bazel is compatible with
  Android Studio using the [Android Studio with Bazel](https://ij.bazel.build/)
  plugin.
* [`mobile-install` for Android](/versions/8.4.2/docs/mobile-install). Bazel's `mobile-install`
  feature provides automated build-and-deploy functionality for building and
  testing Android apps directly on Android devices and emulators.
* [Android instrumentation testing](/versions/8.4.2/docs/android-instrumentation-test) on
  emulators and devices.
* [Android NDK integration](/versions/8.4.2/docs/android-ndk). Bazel supports compiling to
  native code through direct NDK integration and the C++ rules.
* [Android build performance](/versions/8.4.2/docs/android-build-performance). This page
  provides information on optimizing build performance for Android apps.

<h2 id="further-reading">
  Further reading
</h2>

* Integrating with dependencies from Google Maven and Maven Central with [rules\_jvm\_external](https://github.com/bazelbuild/rules_jvm_external).
* Learn [How Android Builds Work in Bazel](https://blog.bazel.build/2018/02/14/how-android-builds-work-in-bazel.html).
