Skip to content
This repository has been archived by the owner on Mar 16, 2019. It is now read-only.

Build is failing due to jcenter dependency disappearing #734

Open
salmaWB opened this issue Dec 10, 2018 · 4 comments
Open

Build is failing due to jcenter dependency disappearing #734

salmaWB opened this issue Dec 10, 2018 · 4 comments

Comments

@salmaWB
Copy link

salmaWB commented Dec 10, 2018

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

@brianinator
Copy link

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.

@nicodeslandes
Copy link

nicodeslandes commented Dec 11, 2018

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

@salmaWB
Copy link
Author

salmaWB commented Dec 11, 2018

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.

@jershell
Copy link

Same trouble morenoh149/react-native-contacts#340

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants