You are here: Tools > Gradle Plugin for Genymotion > Using the plugin with cloud devices

Using the plugin with cloud devices

You can also use Gradle plugin to control cloud devices. To do so, you must declare the devices similarly to local devices, but using the cloudDevices block:

genymotion {
  cloudDevices{
    nexus5 {
      template "Google Nexus 5 - 4.4.4 - API 19 - 1080x1920"
    }
  }
}

The virtual device will be started and accessible via adb. The Android Gradle plugin will then run all the instrumentation tests on it.