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

# Android

> Upload and test your Android applications on real devices in the cloud

# Android

## Finding your APK file

### With Android Studio

Select **Build** → **Build APK(s)** → **Build APK(s)** or **Build** → **Generate Signed APK** (and follow the prompts)

**1. Build Your APK**

Navigate to the Build menu in Android Studio and select your preferred build option

**2. Locate Your APK**

Once the build is complete, you can locate the `.apk` file by selecting `locate` in the dialog that appears, or by navigating to:

```
{project_name}/{app_module_name}/build/outputs/apk/
```

### With Gradle

Generate your build with `gradle` by running the `assemble` command for your preferred app build variant (e.g. `debug` variant):

```bash theme={null}
./gradlew assembleDebug
```

Once the build is complete, you can locate the `.apk` file by navigating to:

```
{project_name}/{app_module_name}/build/outputs/apk/
```

## Converting AAB to APK

NativeBridge currently only supports `apk` files for Android. If you have an `aab` (Android App Bundle) file, you'll need to convert it to an `apk` using Google's [`bundletool`](https://developer.android.com/tools/bundletool).

### Generate Universal APKs

```bash theme={null}
bundletool build-apks --bundle=/<your_app>/{aab_name}.aab \
    --output=/{your_app}/{app_name}.apks \
    --mode=universal
```

### Extract Single APK file

```bash theme={null}
unzip -p /{your_app}/{app_name}.apks universal.apk > /{your_app}/{app_name}.apk
```

## Troubleshooting

If you are having trouble running your uploaded Android app in NativeBridge, we recommend testing the same APK on the standard Google-provided Android emulator locally over ADB.

Once your emulator is launched and available via `adb devices`, you can install it using:

```bash theme={null}
adb install -r {your_app}.apk
```

Or simply drag the `apk` file into the emulator window.

> [!NOTE]
>
> Check our [Knowledge Base](https://support.nativebridge.dev/) for frequently asked questions and solutions.

## Next Steps

> [card] [Upload Your App](https://docs.nativebridge.io/platform/app-management/uploading-apps/uploading-apps.md)
>
> Ready to upload? Head to our upload page

> [card] [iOS Build](https://docs.nativebridge.io/platform/app-management/uploading-apps/ios.md)
>
> Learn about iOS app preparation


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