Home / Android / SDK Integration - Android Studio / Integration through .aar file

SDK Integration - Android Studio

Integration through .aar file

Alternatively, you can integrate the SDK by adding the .aar file included in our SDK. Follow these steps:

1. Get the last .aar

You can download it here.

2. Add the .aar to your Android Studio Project:

  1. Locate or create the "libs" folder

    • Locate the "libs" folder within your project.
    • If it doesn’t exist, create it in the root directory of your project.
    • Once located or created, copy the ".aar" file you previously downloaded into this folder.
  2. Add the dependency to your app-level build.gradle file:

    • Open the "build.gradle" file for your app module.
    • Add the following dependency, replacing "YOUR_AAR_NAME" with the name of your ".aar" file:
        implementation files('libs/YOUR_AAR_NAME.aar')

By following these steps, your ".aar" file will be correctly integrated into your project.

3. Activate geolocation (Recommended):

Setting the call to this function to "TRUE" will trigger custom ad search by geolocation. This it can cause revenue to increase by having more focused ads for the user. It must be placed in some main function know that it will be executed.

Tappx.setCollectLocationEnabled(context,true);