-
Notifications
You must be signed in to change notification settings - Fork 0
Lab 1
-
Install the latest stable version of Android Studio
-
Install the Android 12.0 (S) SDK
-
Set a
ANDROID_HOME
environment variable to point to your Android SDK installation- Add this to any shell startup script you use to ensure it's always set
-
Install Android Emulator Tooling
- Install Intel x86 Emulator Accelerator (HAXM installer) if using Intel cpu
-
Create a new Android Studio project
- Select the
Empty Activity
template - Name your application
Game Counter
- Set
Minimum SDK
toAPI 23: Android 6.0 (Marshmallow)
- Select the
-
Create a new Android Emulator
-
Deploy your project to the emulator using Android Studio
-
Deploy your project to the emulator from the terminal using the Gradle Wrapper
Create a second emulator for either a small screen, or large screen, device. Having multiple emumlators makes it easier to test your app on a variety of device configurations - helping ensure a quality experience for more users.
Enable Developer Options
on your physical device and deploy your app to that device.
Testing on a physical device is often the best way to understand how your app will look/feel for real users.
By setting up a local JDK installation, you gain greater control over which JDK you, and your team, are using. This makes it easier to ensure local builds and CI builds are using the same JDK; making builds more reliable and consistent.
If using a local JDK install, you want to ensure Androd Studio uses the same version. If you don't, your builds from Android Studio and the terminal may use different Gradle daemons which lead to slower builds.
- Download a JDK compatible with your development machine.
- Install the JDK to your machine
- Set a
JAVA_HOME
environment variable to point to your JDK installation- Add this to any shell startup script you use to ensure it's always set
- Update Android Studio
Gradle JDK
setting to point to same JDK asJAVA_HOME