From a22612c9900601a4e8a38b78d1e3dc6b998f20dc Mon Sep 17 00:00:00 2001 From: Marco4763 Date: Thu, 12 Oct 2023 15:52:44 +0100 Subject: [PATCH] Added the namespace property in build.gradle if the field is necessary. --- android/build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/android/build.gradle b/android/build.gradle index 88f4d5bd1..ba0cf89dc 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -38,6 +38,10 @@ apply plugin: 'com.android.library' android { compileSdkVersion 31 ndkVersion "20.1.5948944" + // Condition for namespace compatibility in AGP 8 + if (project.android.hasProperty("namespace")) { + namespace 'com.mapbox.mapboxgl' + } defaultConfig { minSdkVersion 20