diff --git a/android/build.gradle b/android/build.gradle index 0ed6d484..ad390449 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -86,6 +86,11 @@ if (isNewArchitectureEnabled()) { } android { + def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION + if (agpVersion.tokenize('.')[0].toInteger() >= 7) { + namespace "com.reactnativecommunity.asyncstorage" + } + compileSdkVersion safeExtGet('compileSdkVersion', 32) // Used to override the NDK path/version by allowing users to customize // the NDK path/version from their root project (e.g. for M1 support)