Smile Identity

Android Setup

Supported Versions

Minimum supported version is android 4.04 api 15
Maximum supported version is android 12 api 32

Gradle Integration

This is best done in Android Studio but if not installed can be done by looking at the android folder of your flutter native project
1. In your root-level (project-level) Gradle file (build.gradle), add rules to include the Maven Central repository.
buildscript {​
repositories {
mavenCentral() // add the maven central repository
maven {
url ''
2. Declare the Smile ID android SDK in your root level Gradle file (usually build.gradle).
dependencies {
classpath group: 'com.smileidentity', name: 'smile-id-android', version: '1.0.1'
3. In your module (app-level) Gradle file (usually app/build.gradle), apply the Smile ID android plugin:
apply plugin: ''
4. In your module (app-level) Gradle file (usually app/build.gradle), add the Smile ID UI and SDK dependancies
The latest version for smile id ui can be found here
The latest version for smile id sdk can be found here
The latest version for the netjava can be found here
implementation 'com.smileidentity:smile-id-ui:<latest_version>'
implementation 'com.smileidentity:smile-id-sdk:<latest_version>'
implementation 'com.smileidentity:netjava:<latest_version>'// currently (0.0.8)
NB: If you have already integrated with the Android SDK only Remove the reference to the Smile Identity dependency as the Smile UI will automatically pull the correct version in. and also remember to check the latest version here

Android Manifest


Add the following permissions if they do not exist already
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />


Add the following activities under the application tag
<!--id capture-->
<activity android:name="com.smileid.smileidui.SIDIDCaptureActivity" />
<!--selfie capture-->
<activity android:name="com.smileid.smileidui.SIDSelfieCaptureActivity" />
<!--selfie review screen-->
<activity android:name="com.smileid.smileidui.SIDReviewActivity" />

Smile Config

Place the file you downloaded from the portal as specified here in the android/app folder
That's it android is ready!


There are issues that could come up during setup , you can follow the recommended solutions for work arounds

Execution failed for task ':app:mergeDebugJavaResource'.

A failure occurred while executing$ActionFacade More than one file was found with OS independent path 'META-INF/DEPENDENCIES'.
Solution: add this to your module level build.gradle
android {
packagingOptions {
exclude 'META-INF/androidx.*'
exclude 'androidx.*'

Manifest merger failed : Attribute [email protected] value=xxx

Solution: add the snippet below to your AndroidManifest.xml

D8: Cannot fit requested classes in a single dex file Error while merging dex archives:
The number of method references in a .dex file cannot exceed 64K.
Solution: enable android dex as documented here by doing the below
android {
defaultConfig {
multiDexEnabled true //STEP 1
dependencies {
implementation ''// STEP 2
Last modified 2mo ago