Skip to main content

Android

Finding your APK file

With Android Studio

Select BuildBuild APK(s)Build APK(s) or BuildGenerate 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):
./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.

Generate Universal APKs

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

Extract Single APK file

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:
adb install -r {your_app}.apk
Or simply drag the apk file into the emulator window.
Check our Knowledge Base for frequently asked questions and solutions.

Next Steps