Skip to main content

Installation

The Scanbot SDK for Android is distributed through our private Maven repository server (nexus.scanbot.io), which needs to be specified in the settings.gradle.kts file in the root folder of your project:

// settings.gradle.kts in the root of the project:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()

// Add Scanbot SDK maven repositories here:
maven(url = "https://nexus.scanbot.io/nexus/content/repositories/releases/")
maven(url = "https://nexus.scanbot.io/nexus/content/repositories/snapshots/")
}
}

Afterward, the dependencies can be added in the dependencies section of your Android application project configuration, usually in the app/build.gradle.kts file:

Main SDK dependency

implementation("io.scanbot:scanbot-barcode-scanner-sdk:$scanbotSdkVersion")

Get the latest $scanbotSdkVersion from the Changelog.

Ready-to-Use UI dependency

The Scanbot Ready-to-Use UI Components are distributed as a separate package io.scanbot:rtu-ui-v2-barcode. If you plan to integrate our Ready-to-Use UI screens, add it as a dependency to your project as well:

implementation("io.scanbot:rtu-ui-v2-barcode:$scanbotSdkVersion")

Want to scan longer than one minute?

Generate a free trial license to test the Scanbot SDK thoroughly.

Get your free Trial License

What do you think of this documentation?