diff --git a/android/build.gradle b/android/build.gradle index 054eeb10..0bbdbc28 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -23,6 +23,10 @@ apply plugin: 'com.android.library' android { compileSdkVersion 28 + // Condition for namespace compatibility in AGP <4.2 + if (project.android.hasProperty("namespace")) { + namespace 'com.onesignal.flutter' + } defaultConfig { minSdkVersion 16