> ## 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.

# Install Android APK

> Install an APK from Median App Studio on an Android device for testing, and fix the "App not installed" error.

## Overview

You can install an APK generated by Median App Studio directly on your Android device. You may see security prompts and a Google Play Protect scan during installation. Follow the steps below.

## Steps to install an APK on Android

**1. Download the APK**

Retrieve the APK file from Median App Studio.

**2. Enable unknown sources**

If this is your first time installing an APK outside the Google Play Store:

1. Go to *Settings > Security > Install unknown apps*.
2. Select the file manager or browser you used to download the APK.
3. Enable **Allow from this source**.

**3. Open the APK file**

Tap the downloaded APK file to begin installation.

**4. Confirm installation**

Follow on-screen prompts and approve any security warnings.

**5. Complete installation**

Wait for the installation to finish and tap **Open** to launch the app.

## Video guide

For a visual walkthrough, watch this tutorial:

[Install Android APK from App Studio](https://www.youtube.com/embed/JsdItLuqXH8)

## Frequently asked questions

### Why am I seeing the "App not installed" error?

This installation error message can sometimes occur when testing your pre-release Android app on a physical device. Importantly, once your app is uploaded and distributed through Google Play Store, this will no longer be an issue. But, how can you fix it for testing?

For each Android package name, such as `com.example.app`, to install it on your device, it must have a higher "version code" than any previously installed version. This is the case even if you uninstall the app completely.

If you generate your APK in Median App Studio, we automatically increment the "version code" each time your app builds. This is fine, because it's never visible to your end users, and is a number that's only used internally. The version that your users see is something different, called "version name".

So how can this occur?

1. We've seen this occur if you install your APK from App Studio with version code #7, then uninstall it from device, then try to re-install the same APK.
2. If you are building from source code locally, and you do not increment `versionCode` in your app's `build.gradle` file.
3. Some other odd reason we are still unsure of!

If it does occur, and rebuilding in App Studio or changing the version code does not seem to help, then we've heard some clients have success with temporarily disabling Google Play Protect. We've not tested this method ourselves, so use it at your own discretion. See [how to disable Google Play Protect](https://support.mobile-tracker-free.com/hc/en-us/articles/360005346953-How-to-disable-Google-Play-Protect).


## Related topics

- [Median App Studio](https://docs.median.co/docs/app-studio.md)
- [Build and test overview](https://docs.median.co/docs/development-test-deep-dive.md)
- [Tutorial: Build a fitness tracker app with Lovable and Median](https://docs.median.co/docs/getting-started-with-lovable.md)


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