Closed cquillen2003 closed 1 month ago
Did you forget to yarn add background-fetch?
We've been getting this error randomly since yesterday as well. The build used to pass for the past 2 years without issues.
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:lintVitalReportDevRelease'.
> Could not resolve all task dependencies for configuration ':app:devReleaseRuntimeClasspath'.
> Could not resolve com.transistorsoft:tsbackgroundfetch:+.
Required by:
project :app > project :react-native-background-fetch
> Failed to list versions for com.transistorsoft:tsbackgroundfetch.
> Unable to load Maven meta-data from https://oss.sonatype.org/content/repositories/snapshots/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml.
> Could not GET 'https://oss.sonatype.org/content/repositories/snapshots/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml'.
> Read timed out
It seems like a maven issue, not specific to the package: https://status.maven.org/incidents/mbq9d04f6xsn
The plug-in doesn’t load the library remotely. The purpose of the custom maven url is to say “load here locally”.
Today it works. Must have been a Maven issue as mentioned above.
Your Environment
react-native -v
): 0.74.3buildscript { ext { buildToolsVersion = "34.0.0" minSdkVersion = 19 compileSdkVersion = 34 appCompatVersion = "1.4.2" googlePlayServicesLocationVersion = "21.0.1" targetSdkVersion = 34 ndkVersion = "26.1.10909125" kotlinVersion = "1.9.22" } repositories { google() mavenCentral() } dependencies { classpath("com.android.tools.build:gradle") classpath("com.facebook.react:react-native-gradle-plugin") classpath("org.jetbrains.kotlin:kotlin-gradle-plugin") } }
allprojects { repositories { // Required for react-native-background-geolocation maven { url("${project(':react-native-background-geolocation').projectDir}/libs") } maven { url 'https://developer.huawei.com/repo/' } // Required for react-native-background-fetch maven { url("${project(':react-native-background-fetch').projectDir}/libs") } } }
apply plugin: "com.facebook.react.rootproject"