diff --git a/android/build.gradle b/android/build.gradle index de558904a..8cd58c236 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -2,6 +2,11 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { + def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION + if (agpVersion.tokenize('.')[0].toInteger() >= 7) { + namespace "com.rncamerakit" + } + compileSdkVersion 31 defaultConfig { minSdkVersion 24