wkh237/react-native-fetch-blob

Build is failing due to jcenter dependency disappearing

Opened this issue · 4 comments

Build is failing due to jcenter dependency disappearing:

* What went wrong:
A problem occurred configuring project ':react-native-fetch-blob'.
> Could not resolve all files for configuration ':react-native-fetch-blob:classpath'.
   > Could not find com.android.tools:common:25.2.3.
     Searched in the following locations:
         https://jcenter.bintray.com/com/android/tools/common/25.2.3/common-25.2.3.pom
         https://jcenter.bintray.com/com/android/tools/common/25.2.3/common-25.2.3.jar

It looks like this dependency has disappeared from bintray completely:

{
  "errors" : [ {
    "status" : 404,
    "message" : "Could not find resource"
  } ]
}

This is probably an upstream issue, but am hopeful that someone here has an idea what we can do to fix this, since it's coming through react-native-fetch-blob?

Environment
React Native version: 0.57.4
React Native platform + platform version: Android build
Gradle version: 4.4

react-native-fetch-blob

Version: 0.10.8

Thanks in advance

I experience similar issue. A colleague added to build.gradle the following:

subprojects { project ->
  if (['react-native-fetch-blob'].any {
    project.name.contains(it)
  }) {
    buildscript {
      repositories {
        maven { url "https://dl.bintray.com/android/android-tools/" }
      }
    }
  }
}

This helped however then we ran into issue with react-native-firebase library. I'm still trying to track down the root cause with this one.

I think we're hitting this issue that also happened on react-native-svg: software-mansion/react-native-svg#868
Basically some packages got removed from the jcenter repository.
Their fix was to add the google() repo, and upgrade to gradle 3.2.1.

Could that be done for this package as well?

Here's the PR from the react-native-svg package: software-mansion/react-native-svg#869

Their fix was to add the google() repo, and upgrade to gradle 3.2.1

We tried that but alas, ran into issues further down the pipeline.