diff --git a/jni/android/build.gradle b/jni/android/build.gradle index 8900d0c9..4f5ca1b8 100644 --- a/jni/android/build.gradle +++ b/jni/android/build.gradle @@ -27,6 +27,11 @@ rootProject.allprojects { apply plugin: 'com.android.library' android { + // Condition for namespace compatibility in AGP 8 + if (project.android.hasProperty("namespace")) { + namespace 'com.github.dart_lang.jni' + } + // Bumping the plugin compileSdkVersion requires all clients of this plugin // to bump the version in their app. compileSdkVersion 31