# Updating the SDK

{% hint style="warning" %}
Ensure that the Luciq version is consistent across all dependencies, as illustrated below
{% endhint %}

### Gradle Groovy DSL

#### Updating the Luciq Gradle Plugin

To update to the latest version `14.0.0`, modify the root `build.gradle` file as follows:

{% code overflow="wrap" %}

```
buildscript {  
    dependencies {  
        classpath "ai.luciq.library:luciq-plugin:18.0.0"  
    }  
}
```

{% endcode %}

#### Updating the Luciq Dependency

In the Application’s `build.gradle` file, include the following dependencies:

{% code overflow="wrap" %}

```
..  
dependencies {  
    // App dependencies  
    implementation("ai.luciq.library:luciq:18.0.0")  
    implementation("ai.luciq.library:luciq-ndk-crash:18.0.0") // optional  
    implementation("ai.luciq.library:luciq-compose:18.0.0") // optional  
    implementation("ai.luciq.library:luciq-with-okhttp-interceptor:18.0.0") // optional  
    implementation("ai.luciq.library:luciq-apm-okhttp-interceptor:18.0.0") // optional  
    implementation("ai.luciq.library:luciq-apm-grpc-interceptor:18.0.0") // optional  
}
```

{% endcode %}

***

### Gradle Kotlin DSL

#### Updating the Luciq Gradle Plugin

To update to the latest version `14.0.0,` adjust the root `build.gradle` file as shown below:

{% code overflow="wrap" %}

```
plugins {  
    id("ai.luciq.library") version "18.0.0" apply false // optional, only add if using any Luciq plugins  
}
```

{% endcode %}

#### Updating the Luciq Dependency

In the Application’s `build.gradle.kts` file, include the following dependencies:

{% code overflow="wrap" %}

```
dependencies {  
    // App dependencies  
    implementation("ai.luciq.library:luciq:18.0.0")  
    implementation("ai.luciq.library:luciq-ndk-crash:18.0.0") // optional  
    implementation("ai.luciq.library:luciq-compose:18.0.0") // optional  
    implementation("ai.luciq.library:luciq-with-okhttp-interceptor:18.0.0") // optional  
    implementation("ai.luciq.library:luciq-apm-okhttp-interceptor:18.0.0") // optional  
    implementation("ai.luciq.library:luciq-apm-grpc-interceptor:18.0.0") // optional  
}
```

{% endcode %}

***

## Gradle Version Catalog TOML

{% hint style="warning" %}
Ensure that the Luciq version is consistent across all dependencies, as illustrated below:
{% endhint %}

### Updating the libs.versions.toml File

To update the Luciq version to `14.0.0,` make the following changes:

{% code overflow="wrap" %}

```
dependencies {  
    // App dependencies  
    implementation("ai.luciq.library:luciq:18.0.0")  
    implementation("ai.luciq.library:luciq-ndk-crash:18.0.0") // optional  
    implementation("ai.luciq.library:luciq-compose:18.0.0") // optional  
    implementation("ai.luciq.library:luciq-with-okhttp-interceptor:18.0.0") // optional  
    implementation("ai.luciq.library:luciq-apm-okhttp-interceptor:18.0.0") // optional  
    implementation("ai.luciq.library:luciq-apm-grpc-interceptor:18.0.0") // optional  
}
```

{% endcode %}

### Updating the Luciq Gradle Plugin

In the root `build.gradle.kts` file, include:

```
plugins {  
    alias(libs.plugins.luciq.plugin) apply false  
}
```

### Updating the Luciq Dependency

In the App's `build.gradle.kts` file, configure as follows:

{% code overflow="wrap" %}

```
plugins {
    id("com.android.application")
    id("org.jetbrains.kotlin.android")
    id("luciq") // optional
    id("luciq-apm") // optional
    id("luciq-crash") // optional
    id("luciq-compiler-extension") // optional
}
luciq { // Plugins configuration
    webViewsTrackingEnabled = true // Enables automatic WebView collection, default is false (moved from apm {} in v19.2.0)
    setCaptureComposeNavigationDestinations(true) // Enables automatic screen identification for Compose, default is false
    crashReporting { // Crash reporting configuration
        autoUploadEnabled = false // Enables/disables uploading for whitelisted variants, default is false
        appToken = "token" // Provides the application's token
        experimentalGuardSquareSupportEnabled = false // Enables/disables GuardSquare's product checking and processing, default is false
    }
    apm { // APM Configurations
        fragmentSpansEnabled = true // Enables fragment spans collection, default is false; feature won't work if disabled from the plugin
        networkEnabled = true // Enables automatic network interception (OkHttp & URLConnection), default is true
    }
    compilerExtension { // Compiler extension configurations
        version = "x.y.z" // Luciq compiler extension version that matches Kotlin version for compatibility. Refer to https://docs.luciq.ai/docs/android-kotlin-compilers-compatibility
    }
}
dependencies {
    implementation(libs.luciq.main)
    implementation(libs.luciq.ndk.crash) // optional
    implementation(libs.luciq.compose) // optional
    implementation(libs.luciq.apm.okhttp) // optional
    implementation(libs.luciq.apm.grpc) // optional
    implementation(libs.luciq.okhttp) // optional
}
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.luciq.ai/android/set-up-luciq-for-android/integrate-luciq-on-android/updating-the-sdk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
