diff --git a/android/build.gradle b/android/build.gradle index 3d693981..fd24a6ec 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -24,6 +24,10 @@ if (isNewArchitectureEnabled()) { android { + def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION + if (agpVersion.tokenize('.')[0].toInteger() >= 7) { + namespace "com.reactnativedocumentpicker" + } compileSdkVersion getExtOrIntegerDefault('compileSdkVersion') // Used to override the NDK path/version on internal CI or by allowing