Skip to main content

Documentation Portal

Android Installation

To integrate the AAR library add these dependencies in your app/build.gradle:

  • implementation "com.squareup.retrofit2:retrofit:2.9.0"

  • implementation "com.squareup.retrofit2:converter-gson:2.9.0"

  • implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3"

  • implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.3"

Important

Remember to add Global-e as your project dependency.

Import *aar via Android Studio File-New-New Module...

Import .JAR/.AAR Package

Alternatively, you can connect to the library using the following procedure:

  1. Change the project's display type from Android to Project.

  2. Copy the AAR file to the libs directory of the app module.

  3. Open the project structure (File-Project Structure ... or keyboard shortcut Ctrl + Alt + Shift + S)

  4. Go to Dependencies.

  5. Click + (Add Dependency)

  6. Select the JAR / AAR Dependency item.

  7. Add the path to the library file (libs/your_file_name.aar) in the first step.

    Leave the second step unchanged (implementation by default).

  8. Click OK.

  9. Apply changes.

  10. Make a Rebuild project.

Note

Remember to add Internet permission to the Manifest file, as the library uses the Internet.