From 7e6660c9230946b08252bb731f14c3c967582bdc Mon Sep 17 00:00:00 2001 From: NURUL AINI ZA Date: Thu, 7 Aug 2025 15:38:06 +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 996ad11..dfebff9 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -19,6 +19,13 @@ def safeExtGet(prop, fallback) { apply plugin: 'com.android.library' android { + def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')[0].toInteger() + if (agpVersion >= 7) { + namespace 'com.christopherdro.htmltopdf' + } + buildFeatures { + buildConfig true + } compileSdkVersion safeExtGet('compileSdkVersion', 28) compileOptions { sourceCompatibility JavaVersion.VERSION_1_8