Copy as Markdown[Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fcoralogix.com%2Fdocs%2Fuser-guides%2Frum%2Fsdk-installation%2Fandroid%2Ftroubleshooting.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)[Open in Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fcoralogix.com%2Fdocs%2Fuser-guides%2Frum%2Fsdk-installation%2Fandroid%2Ftroubleshooting.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)

# Troubleshooting

If you encounter a dependency that requires Java 8+ APIs, such as enabling core library desugaring to ensure compatibility across Android versions, do the following:

1

<!-- -->

.

Update `compileOptions` by adding the following to your `build.gradle` file.

```
android {

    compileOptions {

        isCoreLibraryDesugaringEnabled = true

    }

}
```

2

<!-- -->

.

Add the desugaring dependency.

```
dependencies {

    coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.4")

}
```

This enables modern Java features on older Android versions.
