diff --git a/android/build.gradle b/android/build.gradle index 38cbee2d..c62e71e7 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -28,6 +28,10 @@ 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.dooboolab.audiorecorderplayer" + } compileSdkVersion safeExtGet('compileSdkVersion', 31) defaultConfig {