Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repository https://jcenter.bintray.com does not work! #820

Open
chukhlov opened this issue Oct 30, 2022 · 7 comments
Open

Repository https://jcenter.bintray.com does not work! #820

chukhlov opened this issue Oct 30, 2022 · 7 comments

Comments

@chukhlov
Copy link

There is an android issue around RN-Fetch-Blob happened suddenly.

  • "rn-fetch-blob": "^0.12.0",

Screenshot 2022-10-30 at 17 49 22

FAILURE: Build failed with an exception.
> :rn-fetch-blob > Resolve dependencies of :rn-fetch-blob:classpath
* What went wrong:
A problem occurred configuring project ':rn-fetch-blob'.
> Could not resolve all artifacts for configuration ':rn-fetch-blob:classpath'.
   > Could not resolve com.android.tools.build:apksig:3.2.1.
     Required by:
         project :rn-fetch-blob > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1
         project :rn-fetch-blob > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools.build:apkzlib:3.2.1
      > Could not resolve com.android.tools.build:apksig:3.2.1.
         > Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/apksig/3.2.1/apksig-3.2.1.pom'.
            > Could not HEAD 'https://jcenter.bintray.com/com/android/tools/build/apksig/3.2.1/apksig-3.2.1.pom'.
               > Read timed out


@chukhlov
Copy link
Author

Android build works well by replacing repositories property in a file node_modules/rn-fetch-blob/android/build.gradle

It works on my side

repositories {
    mavenLocal()
    google()
//        jcenter()
    mavenCentral()
    maven { url "http://maven.google.com" }//Required for crashlytics
    maven { url "https://jitpack.io" }
}

@juanevillam
Copy link

juanevillam commented Oct 31, 2022

Hi! This is also happening to me... Any solutions? It started to happen suddenly too. Thanks!
image

@mripqi
Copy link

mripqi commented Oct 31, 2022

i tried the solution from areebshakeel
#820

replace the jcenter() with mavenCentral() and add configurations

allprojects {
    repositories {
        ...
        mavenCentral()

        configurations.all {
            resolutionStrategy {

                // versions used by 0.67
                force 'com.squareup.okhttp3:okhttp:3.11.0'
                force 'com.facebook.yoga:proguard-annotations:1.19.0'
                force 'com.facebook.fbjni:fbjni-java-only:0.2.2'
                force 'com.facebook.flipper:flipper:0.99.0'
                force 'com.facebook.flipper:flipper-network-plugin:0.99.0'
                force 'com.facebook.flipper:flipper-fresco-plugin:0.99.0'
            }
        }

    }
}

i need to add this configuration because my project using 0.63 not 0.65+

@ericksprengel
Copy link

it's important to fix it in rn-fetch-blob and release another version because jcenter won't be available anymore.

I'll try to do it.

@juanevillam
Copy link

juanevillam commented Nov 1, 2022

Just wanted to say that jcenter gradle repository looks like it's good now. Right now I generated a release and everything works correctly :)

I didn't change anything...

image

@RonRadtke
Copy link

Just switch to https://www.npmjs.com/package/react-native-blob-util
Shouldn't be any issue there

@caprincipal
Copy link

I work this added maven { url "https://maven.google.com" } with letter "s" in https

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

No branches or pull requests

7 participants
@ericksprengel @RonRadtke @chukhlov @mripqi @juanevillam @caprincipal and others