diff --git a/android/build.gradle b/android/build.gradle index 56fa82d..9b8f988 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -25,6 +25,11 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { + // Conditional for compatibility with AGP <4.2. + if (project.android.hasProperty("namespace")) { + namespace 'com.chargebee.flutter.sdk' + } + compileSdkVersion 30 compileOptions {