This tutorial shows how to add the Maven dependencies in a Java Android application using the LEADTOOLS SDK.
Overview | |
---|---|
Summary | This tutorial shows how to use the Maven LEADTOOLS SDK in an Java Android application. |
Completion Time | 10 minutes |
Android Studio Project | Download tutorial project (715 KB) |
Platform | Java (Android) |
IDE | Android Studio |
Development License | Download LEADTOOLS |
Get familiar with the basic steps of creating a project by reviewing the Add References and Set a License tutorial, before working on the Get Started with Maven - Java Android tutorial.
Start with a copy of the project created in the Add References and Set a License tutorial. If you do not have that project, follow the steps in that tutorial to create it.
The License unlocks the features needed for the project. It must be set before any toolkit function is called. For details, including tutorials for different platforms, refer to Setting a Runtime License.
There are two types of runtime licenses:
Note
Adding LEADTOOLS local references and setting a license are covered in more detail in the Add References and Set a License tutorial.
Navigate to <APP_DIR>\settings.gradle
and add the following maven URL within the repositories
block.
The maven URL to add within the repositories
block:
repositories {
maven { url "https://www.leadtools.com/rd/v230/android-repo" }
}
Navigate to <APP_DIR>\app\build.gradle
and add the desired artifacts to the module dependencies
block.
The artifacts to add to the module dependencies
block:
implementation 'leadtools:annotations:23.0.1'
implementation 'leadtools:barcode:23.0.1'
implementation 'leadtools:demos:23.0.1'
implementation 'leadtools:dicom:23.0.1'
implementation 'leadtools:document.analytics:23.0.1'
implementation 'leadtools:document.sdk:23.0.1'
implementation 'leadtools:document.writer:23.0.1'
implementation 'leadtools:formats.document:23.0.1'
implementation 'leadtools:formats.raster.additional:23.0.1'
implementation 'leadtools:formats.raster.common:23.0.1'
implementation 'leadtools:formats.vector:23.0.1'
implementation 'leadtools:forms:23.0.1'
implementation 'leadtools:image.processing:23.0.1'
implementation 'leadtools:kernel:23.0.1'
implementation 'leadtools:ocr:23.0.1'
implementation 'leadtools:ocr.kernel:23.0.1'
implementation 'leadtools:ocr.languages.additional:23.0.1'
implementation 'leadtools:ocr.languages.asian:23.0.1'
implementation 'leadtools:ocr.languages.main:23.0.1'
implementation 'leadtools:pdf:23.0.1'
implementation 'leadtools:pdf.annotations.android:23.0.1'
implementation 'leadtools:pdf.annotations.converter:23.0.1'
implementation 'leadtools:substitutionfonts:23.0.1'
implementation 'leadtools:viewer.controls.android:23.0.1'
Press Shift + F10 to run the application. Follow the steps below to test the application.
If the steps were followed correctly, the application runs with the LEADTOOLS license set.
This tutorial showed how to use the LEADTOOLS Maven repository in a Java Android project.