I am working on react native app that will has a background location tracker, I am using this library "https://github.com/mauron85/react-native-background-geolocation"
But when I try to build the application on android the gradle failed with the error:
No variants found for ':mauron85_react-native-background-geolocation'. Check build files to ensure at least one variant exists.
here is the content of the build.gradle file
buildscript {
ext {
buildToolsVersion = "30.0.2"
minSdkVersion = 21
compileSdkVersion = 33
targetSdkVersion = 33
supportLibVersion = "28.0.0"
googlePlayServicesVersion = "11+"
ndkVersion = "21.4.7075529"
kotlin_version = "1.6.0" // Update this to your version
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:4.2.2")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
I am using react native version "0.67.3"