From 490c29f22dc45f8e6777f0f78ef376ebc91064cd Mon Sep 17 00:00:00 2001 From: NURUL AINI ZA Date: Thu, 7 Aug 2025 15:27:43 +0800 Subject: [PATCH] Update build.gradle Namespace not specified android.buildFeatures.buildConfig = true --- android/build.gradle | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/android/build.gradle b/android/build.gradle index ddef857f..a33b8993 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -15,6 +15,13 @@ buildscript { apply plugin: 'com.android.library' android { + def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')[0].toInteger() + if (agpVersion >= 7) { + namespace 'com.rnfs' + } + buildFeatures { + buildConfig true + } compileSdkVersion safeExtGet('compileSdkVersion', 26) buildToolsVersion safeExtGet('buildToolsVersion', '26.0.3')