Android Setup
This SDK is deprecated and will receive limited support. Please adopt the v10 SDK:
Supported Versions
Minimum supported version is android 4.4 api 19
Maximum supported version is android 13 api 33
Gradle Integration
This is best done in Android Studio but if not installed can be done by looking at the android folder of your react native project
1. In your root-level (project-level) Gradle file (build.gradle
), add rules to include the Maven Central repository.
2. In your module (app-level) Gradle file (usually app/build.gradle
), apply the Smile ID android plugin:
3. Declare the Smile ID android SDK in your root level Gradle file (usually build.gradle
).
Android Manifest
Permissions
Add the following permissions if they do not exist already
Activities
Add the following activities under the application tag
That's it android is ready!
Smile Config
Place the file you downloaded from the portal as specified here in the android/app folder
That's it android is ready!
Common Errors
Execution failed for task ':app:mergeDebugJavaResource'.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade More than one file was found with OS independent path 'META-INF/DEPENDENCIES'.
To resolve this error add this to your android section under android
An issue with local.properties
You will have to add the local.properties to your root android project
Trouble Shooting
If you get an error as below \
Execution failed for task ':app:mergeDebugJavaResource'.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade More than one file was found with OS independent path 'META-INF/DEPENDENCIES'.
The solution is to add this to your module level build.gradle\
Manifest merger failed : Attribute application@label value=xxx
Solution is to add the below to your AndroidManifest.xml\
Last updated