![]() ![]() Any name can work here, even Pixel_API_28 - but you might have to delete an existing non-AOSP emulator, first. Pixel_API_28_AOSP is just a suggestion for a name.Note: It is OK if the emulator’s version is not aligned with the SDK or platform-tools' version you currently have installed (e.g. ![]() Preliminary: Upgrade your emulator executable to the latest version. If ANDROID_HOME isn’t set, either set it yourself or run the following commands after cd-ing into the home folder. Locate your 'Android home' folder - typically set in the ANDROID_HOME environment variable, or in its successor - ANDROID_SDK_ROOT. While it’s possible to do this using Android Studio, we’ll focus on the command line, as it is also good for headless CI machines. an emulator with Google APIs installed (right): Here’s how to install them using the command line Here’s a visual comparison between the two - an SDK 28 (Android 9) AOSP emulator (left) vs. They can be installed alongside regular emulators. While possibly lacking some of the extended Google services, and a bit less fancy overall, we strongly recommend to strictly use this flavor of emulators for running automation/Detox tests. Be it the preinstalled Google play-services - which tend to take up a lot of CPU, or even Google’s gboard Keyboard - which is full-featured but overly bloated: These encourage flakiness in tests, which we are desperate to avoid in automation.įortunately, the Android team at Google offers a pretty decent alternative: AOSP emulators (Android Open-Source Project). We’ve long proven that for automation - which requires a stable and deterministic environment, Google’s emulators running with Google APIs simply don’t deliver what’s needed. But, wait - don’t go and install the default one: read through, first. If you haven’t already done so, you should set up an Emulator. Mobile-apps' automation needs an Android device to run on. * Inspect the content of your ANDROID_SDK_ROOT and ANDROID_HOME environment variables.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |