# Exporting to APK

## Standard Debug Build

Building a standard debug APK is fairly trivial, since your system is essentially doing that anyway every time you hit the **Run** button.

Through the menu, go to **Build > Build Bundle(s) / APK(s) > Build APK(s)** to create a simple debug apk file. A small prompt will pop up with the link to locate this file, however it's typically created at **\[Project Root]/app/build/outputs/apk/debug**.&#x20;

![](/files/-M7-ON9SQ_mGf0s28_bH)

This can then be installed on any Android device manually, given several restrictions. You'll find that Android will warn you half a dozen times about "Installing from unknown sources", an option that you may need to enable in developer settings. Then you'll have to tell Google Play Protect to not quarantine the app immediately for being an unknown variable. It's only after fighting the immune system of your phone for a minute or two that it will finally let you install unverified code.

## Signed Build for Google Play Distribution

An APK for Google to distribute requires a signature, a digital marker that identifies it through the private secure key that created it. This process is a bit more involved, and creates some very important files you dare not lose.

Through the menu once more, go to **Build > Generate Signed Bundle / APK** to enter a setup assistant for this process. It will lead you through creating the keys, assigning passwords, and the exact type of file you'd like to create. For more information about this process, visit Google's documentation on [publishing your app](https://developer.android.com/studio/publish).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://android-course.cornellappdev.com/additional-topics/exporting-to-apk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
