Skip to content

Android Studio, Android Emulator & Phone Debugging Setup

Sum Yin Chuang edited this page Aug 9, 2021 · 1 revision

Setup Guide

Android Studio

Download Android Studio from here

Open a Project

Step 0. Clone the 'deployment-course-labs' repo.

Step 1. Open Android Studio.

Step 2. Open the project by clicking Open an Existing Project. image

Step 3. Select day_3/{ApplicationDirectory}/App and click OK to open the project.
image

Step 4. Make sure the project view is set a Android. image

Emulator Setup

Step 1. Open a project in Android Studio.

Step 2. In the navigation bar, click the AVD Manager. image

Step 3. In the AVD Manager, click the Create Virtual Device button. image

Step 4. In the Virtual Device Configuration, select any phone, then click next at the bottom right. image

Step 5. For system image selection, select Android 9.0 or 10.0, then click next. image

Step 6. In the configuration settings, make sure the Startup orientation is Portrait, then click Show Advanced Settings. image

Step 7. In the camera settings, change the back camera to Webcam0, then click Finish. image

Phone Setup

Step 0. Clone the 'deployment-course-labs' repo.

Step 1. Follow instruction from here to enable developer option and enable USB debugging in your phone.

Step 2. Connect your phone to the pc via USB.
You should be able to see your phone is shown in the devices. image