Stay organized with collections
Save and categorize content based on your preferences.
ManagedVirtualDevice
@Incubating interface ManagedVirtualDevice : Device
Device type for emulators to be managed by the Android Gradle Plugin.
When a device group containing this device is run for tests, Gradle will:
- Automatically start up an emulator matching the device definition. Including downloading any
and all required system image files and creating the avd.
- Run the tests on this device.
- Close the emulator upon completion.
These APIs are experimental and may change without notice.
Summary
Properties
|
abstract String |
The application binary interface for the device image.
|
abstract Int |
The api level of Android to be run on the device.
|
abstract String |
The hardware profile of the device to be emulated.
|
abstract String |
Which source the system image should come from.
|
Properties
abi
abstract var abi: String
The application binary interface for the device image.
apiLevel
abstract var apiLevel: Int
The api level of Android to be run on the device.
This will default to the target api level of the application.
device
abstract var device: String
The hardware profile of the device to be emulated.
systemImageSource
abstract var systemImageSource: String
Which source the system image should come from. Either "google" or "aosp"
"google", the default, will select Google Play images for the device.
"aosp" will use aosp images for the device.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# ManagedVirtualDevice\n====================\n\n```\n@Incubating interface ManagedVirtualDevice : Device\n```\n\n|-----------------------------------------------------|\n| [com.android.build.api.dsl.ManagedVirtualDevice](#) |\n\nDevice type for emulators to be managed by the Android Gradle Plugin.\n\nWhen a device group containing this device is run for tests, Gradle will:\n\n1. Automatically start up an emulator matching the device definition. Including downloading any and all required system image files and creating the avd.\n2. Run the tests on this device.\n3. Close the emulator upon completion.\n\nThese APIs are experimental and may change without notice.\n\nSummary\n-------\n\n| ### Properties ||\n|-------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------|\n| abstract [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [abi](#abi:kotlin.String) The application binary interface for the device image. |\n| abstract [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [apiLevel](#apiLevel:kotlin.Int) The api level of Android to be run on the device. |\n| abstract [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [device](#device:kotlin.String) The hardware profile of the device to be emulated. |\n| abstract [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [systemImageSource](#systemImageSource:kotlin.String) Which source the system image should come from. |\n\nProperties\n----------\n\n### abi\n\n```\nabstract var abi: String\n```\n\nThe application binary interface for the device image. \n\n### apiLevel\n\n```\nabstract var apiLevel: Int\n```\n\nThe api level of Android to be run on the device.\n\nThis will default to the target api level of the application. \n\n### device\n\n```\nabstract var device: String\n```\n\nThe hardware profile of the device to be emulated. \n\n### systemImageSource\n\n```\nabstract var systemImageSource: String\n```\n\nWhich source the system image should come from. Either \"google\" or \"aosp\"\n\n\"google\", the default, will select Google Play images for the device.\n\"aosp\" will use aosp images for the device."]]