diff --git a/android/build.gradle b/android/build.gradle index 13c7e43..db02f3d 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -42,6 +42,11 @@ buildscript { apply plugin: 'com.android.library' android { + def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION + if (agpVersion.tokenize('.')[0].toInteger() >= 7) { + namespace "com.reactnativecommunity.cookies" + } + compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION) buildToolsVersion safeExtGet('buildToolsVersion', DEFAULT_BUILD_TOOLS_VERSION) defaultConfig {