How to build the app for Android?
This chapter will intro how build the app for Android, we have 2 ways:
1. Build app via Android Studio
- Open Android Studio (In our case, we used version 3.1.3).
- Click “Open an existing Android Studio project” and select the android folder then click open.
- Select the required emulator and click ok (In our case, we used Nexus 5X API 28 x86).
- Click the green play button to build the app.
- Navigate the app via the emulator.
To build the app for Android via Android Studio, follow these steps:
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 build the app:
5. Navigate the app via Android emulator.
2. Build app via Terminal
* Please ensure that when you open the file, you are at the right folder.
To build the app for Android via Terminal, follow these steps:
1. Open 2 terminal and access to the right your folder app via this code:
- cd app/app-zapes
2. Please ensure you open the your emulator frist. For us, we run this code:
- emulator @Pixel_2_API_24
3. In the frist terminel, you run this code to open npm package:
- npm start
4. In the second terminel, you run this code to open app on emulator:
- react-native run-android
5. After app building success, you can see this:
Thank you.