Terminal-2 icon

Add the Adyen library module as a dependency

Steps

  1. Import the new Adyen Android Library module.

    1. Go to File > Project Structure in Android Studio.

    2. Press the + button on the upper-left corner of the Project Structure window to add a new module.

    3. In the Create new module screen:

      1. Select Import .JAR/.AAR Package and click Next.
      2. In the file selector, browse to the unzipped adyen-android-library-{version}.aar file.
  2. Add a dependency in the app module to the Adyen library module.

    1. Go to File > Project structure in Android Studio.

    2. Select the app module in the Modules list on the left.

    3. Select the Dependencies tab. 

    4. Add dependency on the + button on the lower left corner. 

    5. Select 3.Module dependency in the drop down menu. 

    6. Select the Adyen library module you have previously added in step 3.

  3.  Add dependency for appcompat-v7.

    1. Go to File > Project Structure in Android Studio.

    2. Select the app module in the Modules list on the left.

    3. Select the Dependencies tab. 

    4. Click the + button on the lower left to add the dependency.

    5. Select 1. Library dependency in the drop down menu.

    6. From the Choose Library Dependency screen choose the com.android.support:appcompat-v7:{version}.

    7. Click OK.

  4. Sync project with gradle files.

You can now use the Adyen library in your Android application.