Lab1 Setup: Android Developing Environment

A. Install Android Studio

Download and install Android Studio follow the guide here with a few clicks. If you can not visit some websites, you can download from here

Note:

B. Install Android SDK

  1. Open Android Studio after your installation is complete.

  2. You can start setting your sdk from either choice below.

    • Click File->Settings, click Appearance & Behavior, then click Android SDK in System Settings tab. The target SDK we use in this class is Android 11.0 API

SDK2

  1. The SDK tools we use is Android SDK Build-Tools 33-rc1

SDK3

C. Hello World

  1. Create a project in Android Studio by clicking File -> New -> New Project -> Phone and Tablet -> Empty Activity
  2. Set the minimum SDK of the project to API 24: Android 7

LABPRE1

  1. Edit code as follow and paste Ctrl + F9 to make the project:

LABPRE1

  1. Under directory "app\build\outputs\apk\debug" of the project, you will see a APK file named "app-debug.apk".

  2. To run the apk in Nox Android Emulator, executing the following command in a console:

    Then clicking your app in Nox, you will see "hello world" in your console.