Table of contents

How to Upgrade

Update the Libraries

  1. Open the file [App Project Root Path]\settings.gradle and add the Maven repository:

    • groovy
    • kts
    1. dependencyResolutionManagement {
         repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
         repositories {
            google()
            mavenCentral()
            maven {
               url "https://download2.dynamsoft.com/maven/aar"
            }
         }
      }
      
    2. dependencyResolutionManagement {
         repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
         repositories {
            google()
            mavenCentral()
            maven {
               url = uri("https://download2.dynamsoft.com/maven/aar")
            }
         }
      }
      

    If you are using gradle 6.x or older version, the maven dependencies should be configured in [App Project Root Path]\app\build.gradle

  2. Open the file [App Project Root Path]\app\build.gradle and add the dependencies:

    • groovy
    • kts
    1. dependencies {
         implementation 'com.dynamsoft:mrzscannerbundle:{version-number}'
      }
      
    2. dependencies {
         implementation("com.dynamsoft:mrzscannerbundle:{version-number}")
      }
      

    Please view user guide for the correct version number.

  3. Click Sync Now. After the synchronization is complete, the SDK is added to the project.

This page is compatible for: