> Documentation index: https://developer.android.com/reference/tools/gradle-api/llms.txt

# SettingsR8

[View Source](https://cs.android.com/search?q=file:com/android/build/api/dsl/SettingsR8.kt+class:com.android.build.api.dsl.SettingsR8) Added in 9.6.0-alpha07


```
@Incubating
interface SettingsR8
```

<br />

*** ** * ** ***

DSL Options for the R8 compiler at the settings level.

## Summary

| ### Public properties |
|---|---|
| `String?` | `version` The version of the R8 compiler to use, resolved from the project's configured repositories as `com.android.tools:r8:<version>`. |

## Public properties

### version

Added in 9.6.0-alpha07

```
var version: String?
```

The version of the R8 compiler to use, resolved from the project's configured repositories as `com.android.tools:r8:<version>`.

If set, overrides the default R8 version shipped with the Android Gradle Plugin (and takes precedence over the `android.r8.versionOverride` Gradle property). The specified version must not be older than the R8 version shipped with this version of the Android Gradle Plugin.