> For the complete documentation index, see [llms.txt](https://aatkit.gitbook.io/android-integration/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aatkit.gitbook.io/android-integration/start/setup/prerequisites.md).

# Prerequisites

Configure your project to work with AATKit

### Set the project's Target Compatibility to 1.8 <a href="#markdown-header-set-the-projects-target-compatibility-to-18" id="markdown-header-set-the-projects-target-compatibility-to-18"></a>

**AATKit requires Java 1.8, to make the project compile properly you need to set your project's Target Compatibility to 1.8. See** [**here**](https://developer.android.com/studio/write/java8-support) **for more instructions.**

### Enable core library desugaring <a href="#markdown-header-use-androidx" id="markdown-header-use-androidx"></a>

Due to Google Play Services ads library, your project may now need [core library desugaring](https://developer.android.com/studio/write/java8-support#library-desugaring) to be enabled to build. Please follow the linked documentation in case of issues.

### Use AndroidX <a href="#markdown-header-use-androidx" id="markdown-header-use-androidx"></a>

AATKit requires AndroidX instead of old support libraries. Please visit the ["Migrating to AndroidX"](https://developer.android.com/jetpack/androidx/migrate) page for migration instructions.

### Enable cleartext traffic <a href="#markdown-header-known-problems-with-android-pie-android-9-and-newer" id="markdown-header-known-problems-with-android-pie-android-9-and-newer"></a>

Some ad networks might not work correctly because of cleartext HTTP traffic being disabled by default. To make them work you need to enable cleartext traffic, for example by adding declaration in AndroidManifest.xml like:

```
<?xml version="1.0" encoding="utf-8"?>
<manifest ...>
    ...
    <application
        ...
        android:usesCleartextTraffic="true"
        ...>
        ...
    </application>
</manifest>
```

### Define your application name in AndroidManifest.xml <a href="#markdown-header-define-your-application-name-in-androidmanifestxml" id="markdown-header-define-your-application-name-in-androidmanifestxml"></a>

It is advised to initialise AATKit and create the needed placements in your application's `onCreate` method. To do so, first you must first define your application's main class name in AndroidManifest.

```
<application
        android:name="MyApplication"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name="MyActivity"
    ...
```
