diff --git a/android/build.gradle b/android/build.gradle index ddef857f..3add3df0 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -15,6 +15,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.rnfs" + } + compileSdkVersion safeExtGet('compileSdkVersion', 26) buildToolsVersion safeExtGet('buildToolsVersion', '26.0.3')