The Run
button builds and deploys your app to a device. However,
to build your app to share or upload to Google Play, you'll need to use one of
the options in the Build menu to compile parts or all of your project.
Before you select any of the build options listed in table 1, make sure you
first select the build variant you
want to use.
Table 1. Build options in the Build menu.
Builds an APK of all modules in the current project for their selected variant. When the build completes, a confirmation notification appears, providing a link to the APK file and a link to analyze it in the APK Analyzer.
If the build variant you've selected is a debug build type, then the APK is signed with a debug key and it's ready to install. If you've selected a release variant, then, by default, the APK is unsigned and you must manually sign the APK. Alternatively, you can select Build > Generate Signed Bundle / APK from the menu bar.
Android Studio saves the APKs you build inproject-name/module-name/build/outputs/apk/.
Builds an Android App Bundle of all modules in the current project for their selected variant. When the build completes, a confirmation notification appears, providing a link to the app bundle and a link to analyze it in the APK Analyzer.
If the build variant you've selected is a debug build type, then the app
bundle is signed with a debug key, and you can
use bundletool to deploy
your app from the app bundle to a connected device. If you've
selected a release variant, then the app bundle is unsigned by default and
you must manually sign it using
jarsigner.
Alternatively, you can select Build > Generate Signed Bundle / APK
from the menu bar.
Android Studio saves the APKs you build in
project-name/module-name/build/outputs/bundle/.
Note: The Run
button builds an APK with testOnly="true",
which means the APK can only be installed via adb (which Android Studio uses). If you want
a debuggable APK that people can install without adb, select your debug variant and click
Build Bundle(s) / APK(s) > Build APK(s).
For details about the tasks that Gradle executes for each command, open the Build window as described in the next section. For more information about Gradle and the build process, see Configure Your Build.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-02-26 UTC.