> ## Documentation Index
> Fetch the complete documentation index at: https://docs.median.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Android build and deployment

> Build, test, and distribute your Android app with APKs, Android App Bundles, and Google Play.

This section covers the core steps for building and deploying your Android app: installing APKs, managing Android App Bundles, publishing to Google Play, and, if you need it, building from source and testing with a localhost website.

## Build, test, and publish

> [card] [Install an APK](https://docs.median.co/docs/install-android-apk.md)
>
> Download an APK from App Studio and install it on an Android device for
> testing or for distribution outside Google Play.

> [card] [Android App Bundle](https://docs.median.co/docs/android-app-bundle.md)
>
> Build an Android App Bundle (AAB), the format Google Play requires for new
> apps. App Bundles make downloads smaller for your users.

> [card] [Publish to Google Play](https://docs.median.co/docs/upload-android-to-google-play.md)
>
> Upload your App Bundle to Google Play Console, test it with testers, and
> release it to the Play Store.

> [!TIP]
>
> Use APKs for testing on your own devices and App Bundles for publishing to
> Google Play.

> [!TIP]
>
> **Use your AI agent**
>
> Use the Median MCP with your AI agent to start an Android build and check its status. See
> [Median MCP server](https://docs.median.co/docs/mcp-server.md) to set it up.
>
> Your agent can't download builds. It gives you a link to the build page in App Studio.

## Build from source (optional)

Build from source only if you need to inspect or change the native Android code. This requires Android Studio on your computer.

> [card] [Build Android from source](https://docs.median.co/docs/build-android-from-source.md)
>
> Set up Android Studio, configure dependencies and SDK versions, and build
> your app locally.

> [card] [Test with a localhost website](https://docs.median.co/docs/android-studio-with-localhost-website.md)
>
> Connect your app in Android Studio to a website running on your computer, so
> you can test changes before deploying them.


## Related topics

- [Build and test overview](https://docs.median.co/docs/development-test-deep-dive.md)
- [App updates and migration guide](https://docs.median.co/docs/app-updates.md)
- [Build Android from source](https://docs.median.co/docs/build-android-from-source.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.