Get Started with Maven - Java Android

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

Required Knowledge

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.

Create the Project

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.

Set the License File

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.

Add the Repository

Navigate to <APP_DIR>\settings.gradle and add the following maven URL within the repositories block.

Adding the repository.

The maven URL to add within the repositories block:

repositories { 
    maven { url "https://www.leadtools.com/rd/v230/android-repo" } 
} 

Add the Artifacts

Navigate to <APP_DIR>\app\build.gradle and add the desired artifacts to the module dependencies block.

Adding the artifacts.

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' 

Run the Project

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.

Get Started with Android Maven.

Wrap-up

This tutorial showed how to use the LEADTOOLS Maven repository in a Java Android project.

See Also

Help Version 23.0.2024.5.22
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.