If you are using Android Studio, you can integrate the LocalAuthentication SDK via the Maven repository. You can also download the LocalAuthentication SDK and integrate it into the project. Before you start developing an app, integrate the LocalAuthentication SDK into your Android Studio project first.
allprojects {
repositories {
google()
jcenter()
// Add a Maven repository address.
maven {url 'https://developer.huawei.com/repo/'}
}
}
The Maven repository address cannot be accessed from a browser. It can only be configured in the IDE. If there are multiple Maven repositories, add the Maven repository address of Huawei as the last one.
dependencies {
/* Add SDK build dependencies */
implementation 'com.huawei.security:localauthentication:{version}'
}
localauthentication indicates the Huawei's LocalAuthentication SDK. Replace {version} with the actual SDK version number. For details about version numbers, refer to Version Change History. Example: implementation 'com.huawei.security:localauthentication:1.1.1'

If an error occurs, check the network connection and the configuration in the build.gradle file.

repositories{
flatDir{
/* Add a dependency directory */
dirs 'libs'
}
}
dependencies{
/* Add SDK build dependencies */
implementation(name:'localauthentication-1.1.1',ext:'aar')
}