---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.1
alternate:
  - https://appmetrica.yandex.by/docs/en/sdk/android/geo-exclude.md
  - https://appmetrica.yandex.by/docs/ru/sdk/android/geo-exclude.md
  - href: en/sdk/android/geo-exclude.md
    type: text/markdown
    title: Markdown version
  - href: ../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://appmetrica.yandex.by/docs/en/llms.txt

# Excluding geo from the list of dependencies

Geo features were added to a separate dependency: `io.appmetrica.analytics:analytics-location`. It contains a dependency on `com.google.android.gms:play-services-location:19.0.1` used to get locations. The `io.appmetrica.analytics:analytics-location` library version should correspond to the `io.appmetrica.analytics:analytics` library version.

If you need to disable geo, for example, for certain app categories to meet Google Play policies, exclude the module from the list of dependencies:

{% list tabs %}

- build.gradle.kts

   ```kotlin translate=no
   configurations.configureEach {
       exclude(group = "io.appmetrica.analytics", module = "analytics-location")
   }
   ```

- build.gradle

   ```groovy translate=no
   configurations.configureEach {
       exclude group: 'io.appmetrica.analytics', module: 'analytics-location'
   }
   ```

{% endlist %}

<!-- source: en/_includes/feedback-button-2.md -->
If you didn't find the answer you were looking for, you can use the feedback form to submit your question. Please describe the problem in as much detail as possible. Attach a screenshot if possible.

<a href="../../troubleshooting/feedback-new">
  <span class="button">Contact support</span>
</a>

<a href="../../troubleshooting/feedback-docs">
  <span class="button">Suggest an improvement for documentation</span>
</a>
<!-- endsource: en/_includes/feedback-button-2.md -->
