diff --git a/android/build.gradle b/android/build.gradle index 86d4866..91e38e1 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -22,6 +22,11 @@ apply plugin: 'com.android.library' android { compileSdkVersion getExtOrIntegerDefault('compileSdkVersion') + def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')[0].toInteger() + if (agpVersion >= 7) { + namespace 'com.reactnativecommunity.clipboard' + } + defaultConfig { minSdkVersion getExtOrIntegerDefault('minSdkVersion') targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')