JCenter 종료 후 Gradle 빌드

중요

Visual Studio App Center는 2025년 3월 31일에 사용 중지될 예정입니다. Visual Studio App Center가 완전히 사용 중지될 때까지 계속 사용할 수 있지만 마이그레이션을 고려할 수 있는 몇 가지 권장 대안이 있습니다.

지원 타임라인 및 대안에 대해 자세히 알아봅니다.

AppCenter Android 빌드에서 JCenter 및 Bintray 리소스를 사용하고 빌드가 Gradle 작업 실패(리소스 오류를 가져올 수 없음)에 실패하는 경우 JCenter Bintray가 종료되기 때문입니다. 다음 줄(빌드 로그에서)은 이 문제를 보여 줍니다.

Resolved com.android.tools.build:gradle:3.5.4 in :classpath 
Resolved com.google.gms:google-services:4.2.0 in :classpath 
Project mobileapp at : is either no Android app project or build version has not been set to override. Skipping...
Configure project :@react-native-community_async-storage
Project @react-native-community_async-storage at :@react-native-community_async-storage is either no Android app project or build version has not been set to override.
* What went wrong:
Execution failed for task ':app:***'.
Could not resolve all files for configuration ':app:lintClassPath'.
Could not download groovy-all.jar (org.codehaus.groovy:groovy-all:2.4.15)
Could not get resource 'https://jcenter.bintray.com/org/codehaus/groovy/groovy-all/2.4.15/groovy-all-2.4.15.jar'.
Could not GET 'https://jcenter.bintray.com/org/codehaus/groovy/groovy-all/2.4.15/groovy-all-2.4.15.jar'.

이 문제는 JFrog가 2021년 5월 1일에 JCenter(Bintray의 일부)를 종료했다는 사실 때문에 발생합니다. JCenter는 Android 아티팩트 중 주요 부분이 이 사이트에서 호스트되었기 때문에 Android 개발의 중요한 부분이었습니다. Android 개발자는 일부 오래된 라이브러리가 더 이상 유지 관리되지 않는다는 예방 조치를 통해 라이브러리를 Maven Central로 이식해야 합니다. 이러한 게시물은 빌드 파이프라인의 중단을 방지하기 위해 알아야 할 사항과 수행해야 하는 작업을 알려줍니다.