diff --git a/android/build.gradle b/android/build.gradle index 9f02021..0cd6b89 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -16,6 +16,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.react.rnspinkit" + } + compileSdkVersion safeExtGet('compileSdkVersion', 28) //noinspection GradleDependency buildToolsVersion safeExtGet('buildToolsVersion', '28.0.3') @@ -47,4 +52,4 @@ dependencies { //noinspection GradleDynamicVersion implementation "com.facebook.react:react-native:${safeExtGet('reactnativeVersion', '+')}" implementation 'com.github.ybq:Android-SpinKit:1.4.0' -} \ No newline at end of file +}