react-native-fetch-blob icon indicating copy to clipboard operation
react-native-fetch-blob copied to clipboard

Build is failing due to jcenter dependency disappearing

Open salmaWB opened this issue 6 years ago • 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

salmaWB avatar Dec 10 '18 13:12 salmaWB

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.

brianinator avatar Dec 10 '18 18:12 brianinator

I think we're hitting this issue that also happened on react-native-svg: https://github.com/react-native-community/react-native-svg/issues/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: https://github.com/react-native-community/react-native-svg/pull/869

nicodeslandes avatar Dec 11 '18 02:12 nicodeslandes

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.

salmaWB avatar Dec 11 '18 07:12 salmaWB

Same trouble https://github.com/rt2zz/react-native-contacts/issues/340

jershell avatar Dec 11 '18 11:12 jershell