Skip to content

Address JCenter Shutdown #406

@tavour-frank

Description

@tavour-frank

Jcenter has been shutdown, and while support was reported to continue until Feb 1, 2022, we are already experiencing bad gateway errors from this package when building our react-native app on android. It appears this package is still pointing at JCenter as a repository - is there a timeline for a migration off jcenter for any android dependencies this package uses?

  • analytics-react-native version: 1.5.0
  • React Native version: 0.65.1
  • iOS or Android or both? android

Steps to reproduce
Build android

Expected behavior
Android builds successfully

Actual behavior
502 error when attempting to fetch packages from jcenter:

A problem occurred configuring project ':@segment_analytics-react-native'.
> Could not resolve all artifacts for configuration ':@segment_analytics-react-native:classpath'.
   > Could not resolve com.android.tools.build:gradle:3.1.4.
     Required by:
         project :@segment_analytics-react-native
      > Could not resolve com.android.tools.build:gradle:3.1.4.
         > Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.1.4/gradle-3.1.4.pom'.
            > Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.1.4/gradle-3.1.4.pom'. Received status code 502 from server: Bad Gateway
   > Could not resolve org.jetbrains.kotlin:kotlin-compiler-embeddable:1.4.10.
     Required by:
         project :@segment_analytics-react-native > org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.10
      > Skipped due to earlier error
   > Could not resolve org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.4.10.
     Required by:
         project :@segment_analytics-react-native > org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.10
      > Skipped due to earlier error
   > Could not resolve org.jetbrains.kotlin:kotlin-android-extensions:1.4.10.
     Required by:
         project :@segment_analytics-react-native > org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.10
      > Skipped due to earlier error
   > Could not resolve org.jetbrains.kotlin:kotlin-compiler-runner:1.4.10.
     Required by:
         project :@segment_analytics-react-native > org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.10
      > Skipped due to earlier error
   > Could not resolve org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.4.10.
     Required by:
         project :@segment_analytics-react-native > org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.10
      > Skipped due to earlier error
   > Could not resolve org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.4.10.
     Required by:
         project :@segment_analytics-react-native > org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.10
      > Skipped due to earlier error
   > Could not resolve org.jetbrains.kotlin:kotlin-reflect:1.4.10.
     Required by:
         project :@segment_analytics-react-native > org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.10
      > Skipped due to earlier error
   > Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.4.10.
     Required by:
         project :@segment_analytics-react-native > org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.10
      > Skipped due to earlier error
   > Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin-model:1.4.10.
     Required by:
         project :@segment_analytics-react-native > org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.10
      > Skipped due to earlier error
   > Could not resolve org.jetbrains.kotlin:kotlin-stdlib:1.4.10.
     Required by:
         project :@segment_analytics-react-native > org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.10
      > Skipped due to earlier error
   > Could not resolve org.jetbrains.kotlin:kotlin-util-klib:1.4.10.
     Required by:
         project :@segment_analytics-react-native > org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.10
      > Skipped due to earlier error
   > Could not resolve com.google.code.gson:gson:2.8.5.
     Required by:
         project :@segment_analytics-react-native > org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.10
      > Skipped due to earlier error
   > Could not resolve de.undercouch:gradle-download-task:4.0.2.
     Required by:
         project :@segment_analytics-react-native > org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.10
      > Skipped due to earlier error
   > Could not resolve com.github.gundy:semver4j:0.16.4.
     Required by:
         project :@segment_analytics-react-native > org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.10
      > Skipped due to earlier error

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions