Build App for Android

In this part, we will guide how to run the mobile for Android.

NOTE: before start this tutorial, you MUST make sure install SAMPLE REACT NATIVE app successfully.

Check the tutorial below:

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:

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

3. Choose the required emulator and click Play button:

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

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, open 2 terminal and access to the right your folder app via this code:

cd app/app-zapes

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

adb devices

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.

Last updated