From 9f9dd16134e2c2c6613afe70a311975aefcb5bd9 Mon Sep 17 00:00:00 2001 From: littleGnAl Date: Fri, 8 Sep 2023 11:41:19 +0800 Subject: [PATCH] fix: [android] Add namespace to work with android gradle 8.0 --- android/build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/android/build.gradle b/android/build.gradle index bb2b4ff..8a4bbf8 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -22,6 +22,11 @@ rootProject.allprojects { apply plugin: 'com.android.library' android { + // Conditional for compatibility with AGP <4.2. + if (project.android.hasProperty("namespace")) { + namespace 'com.agora.iris_method_channel' + } + compileSdkVersion 31 externalNativeBuild {