diff --git a/android/build.gradle b/android/build.gradle index 9f8e491..077d5be 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -22,6 +22,10 @@ def safeExtGet(prop, fallback) { } android { + def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')[0].toInteger() + if (agpVersion >= 7) { + namespace 'org.linusu' + } compileSdkVersion safeExtGet('compileSdkVersion', 30) buildToolsVersion safeExtGet('buildToolsVersion', '30.0.3')