diff --git a/android/build.gradle b/android/build.gradle index 24a37eb..0f4d70d 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -28,6 +28,10 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { + // conditional for compatibility with older gradle versions + if (project.android.hasProperty('namespace')) { + namespace 'com.onfido.sdk.flutter' + } compileSdkVersion 32 compileOptions {