ManagedVirtualDevice
@Incubating interface ManagedVirtualDevice : Device
com.android.build.api.dsl.ManagedVirtualDevice |
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
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.
systemImageSource
abstract var systemImageSource: String
Which source the system image should come from. Either "google", "google-atd", "aosp", or "aosp-atd"
"google", the default, will select Google Play images for the device. "google-atd" will use automated test device images from Google Play. "aosp" will use aosp images for the device. "aosp-atd" will use automated test device image from aosp.