# Dependencies

First, it's necessary to add the following Maven repository inside the `repositories` block of the `settings.gradle` file

{% hint style="info" %}
In projects that still use an old structur&#x65;**,** `repositories`block is located in the`build.gradle`file at the **app** level
{% endhint %}

```gradle
repositories {
     maven { url 'https://artifactory.netsocks.io/artifactory/maven' }
}
```

Once added, you can proceed to include the SDK. To do this, you need to enter the following line inside the `dependencies`block of the `build.gradle` file (`:app` level).

```gradle
implementation ('io.netsocks:android-sdk:1.0.0-rc05') { changing = true }
```

In the same file, just above the repositories block, it is necessary to add the following code snippet to fetch the latest updates and ensure more efficient monetization:

```gradle
configurations.all {
  resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
```

{% hint style="danger" %}
If you do not include the above code snippet, monetization may be affected, as it ensures that you always have the latest version of our SDK.
{% endhint %}

Furthermore, in case you don't already have compatibility with Java 8, it's necessary to add these additional lines inside the `android` block, also in the same`build.gradle` file

```gradle
compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}
```

Once this is done, you can proceed with the installation and use of the SDK.
