> For the complete documentation index, see [llms.txt](https://docs.stylemixthemes.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stylemixthemes.com/masterstudy-app-documentation/android-app-build-on-macos/test-your-app-on-mac.md).

# Test Your App on mac

In this section, we are going to describe how to build the test **APK file and Run App on Emulator**

There two ways of testing your app: via **Android Studio Emulator or by generating Test APK.**

After you added **app icon** and **website URL** you can launch Emulator by clicking on **Run App** button in the **Toolbar**.

<figure><img src="https://3638481888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDPXgP8rsunPUNTvW2I%2Fuploads%2FIcncCAFmJZea7EqVNuSh%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202023-02-07%20%D0%B2%2016.29.16.png?alt=media&amp;token=664c2beb-8be8-46a0-ac6a-2a82eb12ac9d" alt=""><figcaption></figcaption></figure>

After that the Emulator will be launched with the app.

If you'd like to test the application on physical android devices, you can create APK file.

For this, you need to go to Terminal in Android Studio

<figure><img src="https://3638481888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDPXgP8rsunPUNTvW2I%2Fuploads%2FBdARuCIjB4PNDlIrTRMo%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202023-02-07%20%D0%B2%2016.31.56.png?alt=media&amp;token=19f624a8-e6f0-4aaa-9199-9484d92f2d32" alt=""><figcaption></figcaption></figure>

Then you can make two types APK:&#x20;

1. Test APK for android physical device
2. APK for Google Play

For Test APK you need write in terminal next code:

{% hint style="info" %}
flutter build apk --no-sound-null-safety
{% endhint %}

<figure><img src="https://3638481888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDPXgP8rsunPUNTvW2I%2Fuploads%2FapJTliacrjJ7oqiklPEf%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202023-02-07%20%D0%B2%2016.38.42.png?alt=media&amp;token=e56164e8-47ea-42e3-85d2-66c9bb1310dc" alt=""><figcaption></figcaption></figure>

It will take some time, then you will get a notification that the build was successful

<figure><img src="https://3638481888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDPXgP8rsunPUNTvW2I%2Fuploads%2FvfTyj9l25FOA3iFsBZdN%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202023-02-07%20%D0%B2%2016.38.27.png?alt=media&amp;token=09c32874-b25e-46e6-9fe9-2cd3be15daba" alt=""><figcaption></figcaption></figure>

For APK Google Play:

{% hint style="info" %}
flutter build appbundle --no-sound-null-safety
{% endhint %}

<figure><img src="https://3638481888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDPXgP8rsunPUNTvW2I%2Fuploads%2FEZjjOWqeuWHJiyxAPdHz%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202023-02-07%20%D0%B2%2016.43.40.png?alt=media&amp;token=2dbd3477-7929-48e5-80f1-a35aa2b32642" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3638481888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDPXgP8rsunPUNTvW2I%2Fuploads%2F4IaxqIz0xz6GYOpFYJkU%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202023-02-07%20%D0%B2%2016.44.55.png?alt=media&amp;token=4a6f6bd3-0a53-4249-b1cd-0952d9bc7fae" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stylemixthemes.com/masterstudy-app-documentation/android-app-build-on-macos/test-your-app-on-mac.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
