diff --git a/flutter/flutter/android/build.gradle b/flutter/flutter/android/build.gradle index 7c6b559..5e80b5a 100644 --- a/flutter/flutter/android/build.gradle +++ b/flutter/flutter/android/build.gradle @@ -19,6 +19,11 @@ rootProject.allprojects { apply plugin: 'com.android.library' android { + // Conditional for compatibility with AGP <4.2. + if (project.android.hasProperty("namespace")) { + namespace 'com.arthenica.ffmpegkit.flutter' + } + compileSdkVersion 31 defaultConfig {