# Build App for Android

{% hint style="info" %}
**NOTE**: before start this tutorial, you **MUST** make sure install **SAMPLE REACT NATIVE** app successfully.
{% endhint %}

Check the tutorial below:

{% embed url="<https://reactnative.dev/docs/environment-setup>" %}

### 1/ Run emulator device via Android Studio

1. Open Android Studio (In our case, we used version 3.1.3).
2. Click “Open an existing Android Studio project” and select the android folder then click open.
3. Select the required emulator and click ok (In our case, we used Nexus 5X API 28 x86).
4. Click the green play button to run the app.
5. Run the emulator device.

1\. Open Android Studio:

![](https://zinisoft.net/wp-content/uploads/2019/08/Screen-Shot-2019-08-19-at-1.15.43-PM.png)

2\. Click “Open an existing Android Studio project” and select android folder then click open:

3\. Choose the required emulator and click Play button:

![](/files/-M6SzvKADcDWGTEuzMJ_)

4\. Click the green play button to run the emulator:

![](/files/-M6T--wKMAtnjqU7uDrF)

### 2/ Build app via Terminal / Shell Windows

\* Please ensure that when you open the file, you are at the right folder.

1\. Open [**Visual Studio Code**](https://code.visualstudio.com/download), open  2 terminal and access to the right your folder app via this code:

```
cd app/app-zapes
```

![](/files/-M6UBfUJpLbSym4vXBpq)

2\. Please ensure you open the emulator first, use the below command to verify whether our mobile device is connected or not.

```
adb devices
```

![If phone emulator is opened, it will be shown here.](/files/-M6UCIbNjSumRq_6S0gA)

3\. Then install npm packages dependencies

```
npm install
```

4\. Run this code to open app on the emulator:

```
react-native run-android
```

5\. After app-building success, the app will show on mobile like below.

<div align="left"><img src="/files/-MA25kME0v9QZc2g1QGz" alt="Zapes Mobile App"></div>


---

# 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://zinisoft-net.gitbook.io/zapes/get-started-1/build-app-for-android.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.
