question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Jcenter shut down causes problems on the module

See original GitHub issue

Today we have started to see this issue :

':react-native-haptic-feedback'.
> Could not resolve all artifacts for configuration ':react-native-haptic-feedback:classpath'.
   > Could not resolve com.android.tools.build:builder:3.0.0.
     Required by:
         project :react-native-haptic-feedback > com.android.tools.build:gradle:3.0.0 > com.android.tools.build:gradle-core:3.0.0
      > Could not resolve com.android.tools.build:builder:3.0.0.
         > Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/builder/3.0.0/builder-3.0.0.pom'.
            > Could not HEAD 'https://jcenter.bintray.com/com/android/tools/build/builder/3.0.0/builder-3.0.0.pom'.
               > Read timed out
   > Could not resolve org.eclipse.jdt.core.compiler:ecj:4.6.1.
     Required by:
         project :react-native-haptic-feedback > com.android.tools.build:gradle:3.0.0 > com.android.tools.build:gradle-core:3.0.0 > com.android.tools.lint:lint:26.0.0
      > Skipped due to earlier error
   > Could not resolve com.google.code.gson:gson:2.3.
     Required by:
         project :react-native-haptic-feedback > com.android.tools.build:gradle:3.0.0 > com.android.tools.build:gradle-core:3.0.0 > com.android.tools.lint:lint:26.0.0 > com.android.tools.build:manifest-merger:26.0.0
         project :react-native-haptic-feedback > com.android.tools.build:gradle:3.0.0 > com.android.tools.build:gradle-core:3.0.0 > com.android.tools.lint:lint:26.0.0 > com.android.tools.build:manifest-merger:26.0.0 > com.android.tools:sdklib:26.0.0
      > Skipped due to earlier error
   > Could not resolve com.google.errorprone:error_prone_annotations:2.0.18.
     Required by:
         project :react-native-haptic-feedback > com.android.tools.build:gradle:3.0.0 > com.android.tools.build:gradle-core:3.0.0 > com.android.tools.build:gradle-api:3.0.0 > com.google.guava:guava:22.0
      > Skipped due to earlier error
   > Could not resolve org.jetbrains.kotlin:kotlin-reflect:1.1.3-2.
     Required by:
         project :react-native-haptic-feedback > com.android.tools.build:gradle:3.0.0 > com.android.tools.build:gradle-core:3.0.0 > com.android.tools.lint:lint:26.0.0 > com.android.tools.lint:lint-checks:26.0.0 > com.android.tools.lint:lint-api:26.0.0
      > Skipped due to earlier error

Is there any workaround on this? Thank you in advance!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
remoblasercommented, Sep 16, 2021

I guess it’s on the Organisation to merge this pull request. For now I’ve patched my app like this:

diff --git a/node_modules/react-native-haptic-feedback/android/build.gradle b/node_modules/react-native-haptic-feedback/android/build.gradle
index c326a26..198fb2a 100644
--- a/node_modules/react-native-haptic-feedback/android/build.gradle
+++ b/node_modules/react-native-haptic-feedback/android/build.gradle
@@ -4,7 +4,7 @@ def DEFAULT_TARGET_SDK_VERSION              = 27
 
 buildscript {
     repositories {
-        jcenter()
+        mavenCentral()
         google()
     }
 

using https://www.npmjs.com/package/patch-package

Read more comments on GitHub >

github_iconTop Results From Across the Web

JCenter Shutdown Impact on Gradle Builds
Gradle may not be able to download the dependencies used to compile, test or run your code. Gradle may not be able to...
Read more >
Is JCenter down permanently (31 Oct)? - Stack Overflow
Yes. jcenter is down right now. But there is a way to fix the issue. jcenter was sunset a while ago and remained...
Read more >
JFrog to Shut down JCenter and Bintray - InfoQ
JFrog has announced that they are shutting down the Bintray hosting service, which includes the popular JCenter hosting service for Java ...
Read more >
Gradle build after JCenter shutdown - Microsoft Learn
If you use JCenter and Bintray resources in your AppCenter Android builds and your builds fail on Gradle Task failure (could not get...
Read more >
Upgrade Android Project from JCenter to Maven Central
February 1, 2022 - JCenter will be completely shut down. All Android developers should switch off of JCenter in order to continue getting ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found