From 93621994b173d6c1074589ccb13ecfedda97d833 Mon Sep 17 00:00:00 2001 From: Wilder Perkins Date: Wed, 30 Sep 2026 10:51:16 +0100 Subject: [PATCH] fix(android): fix build on AGP 9 / RN 0.87 Fix same issue as https://github.com/react-native-checkbox/react-native-checkbox/issues/257 --- android/build.gradle | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 155b3a8e9..3263049c0 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -75,11 +75,11 @@ if (isNewArchitectureEnabled()) { android { def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION - if (agpVersion.tokenize('.')[0].toInteger() >= 7) { - namespace "com.reactnativecommunity.picker" - } + if (agpVersion.tokenize('.')[0].toInteger() >= 7) { + namespace "com.reactnativecommunity.picker" + } - compileSdkVersion safeExtGet('compileSdkVersion', 31) + compileSdkVersion safeExtGet('compileSdkVersion', 31) defaultConfig { minSdkVersion safeExtGet('minSdkVersion', 21) @@ -101,6 +101,10 @@ android { } } } + + buildFeatures { + buildConfig = true + } } repositories {