JCenter Replace With Mavencentral ๋นŒ๋“œ ์—๋Ÿฌ

์ด๋ฏธ ๋งŽ์ด๋“ค ์•„์‹œ๊ฒ ์ง€๋งŒ JCenter๊ฐ€ 21๋…„ 3์›” 31์ผ ์ดํ›„๋กœ ์ถ”๊ฐ€ ์—…๋ฐ์ดํŠธ๋ฅผ ๋ฐ›์ง€ ์•Š์•˜๋‹ค. ์ด๋ ‡๊ฒŒ ์„œ๋น„์Šค ์ข…๋ฃŒ ์ˆ˜์ˆœ์„ ๋ฐŸ์œผ๋ ค๋‹ค๊ฐ€ ์ปค๋ฎค๋‹ˆํ‹ฐ์˜ ๋ญ‡๋งค๋ฅผ ๋งž๊ณ (ใ…Žใ…Ž) read-only ๋ฌด๊ธฐํ•œ ์„œ๋น„์Šค๋ฅผ ์ œ๊ณตํ•˜๊ฒ ๋‹ค๊ณ  ํ•˜์˜€๋‹ค.
https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/

buildscript {  
    repositories {  
        google()  
        jcenter()
    }
    ...

JCenter Maven repository is no longer receiving updates: newer library versions may be available elsewhere

ํ”„๋กœ์ ํŠธ/build.gradle์—์„œ repository์— jcenter()๋ฅผ ๋„ฃ์œผ๋ฉด ์œ„์™€ ๊ฐ™์€ ๊ฒฝ๊ณ  ๋ฌธ๊ตฌ๊ฐ€ ๋ณผ ์ˆ˜ ์žˆ๋‹ค.
๋ฌด์ž‘์ • replace with mavenCentral()์„ ํ•˜๋ฉด ๋นŒ๋“œ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•œ๋‹ค.

* What went wrong:
Execution failed for task ':app:dataBindingMergeDependencyArtifactsDevDebug'.
> Could not resolve all files for configuration ':app:devDebugCompileClasspath'.
   > Could not find com.google.android.exoplayer:exoplayer-core:2.12.1.
     Required by:
         project :app
   > Could not find com.google.android.exoplayer:exoplayer-ui:2.12.1.
     Required by:
         project :app
   > Could not find com.danikula:videocache:2.7.1.
     Required by:
         project :app

๋กœ๊ทธ ์ƒ exoplayer์™€ videocache๊ฐ€ ์žกํ˜”๋Š”๋ฐ ํ•ด๊ฒฐ๋ฒ•์ด ๊ฐ๊ฐ ๋‹ค๋ฅด๋‹ค.
exoplayer์˜ ๊ฒฝ์šฐ mavenCentral()์— ์ตœ์‹  ๋ฒ„์ „๋ถ€ํ„ฐ ์˜ฌ๋ผ๊ฐ€ ์žˆ์œผ๋ฏ€๋กœ dependency ๋ฒ„์ „์„ ์˜ฌ๋ ค์ค˜์•ผ ํ•œ๋‹ค.
videocache์˜ ๊ฒฝ์šฐ๋Š” ์ฐพ์•„๋ณด๋‹ˆ ์•„์˜ˆ mavenCentral์— ์—…๋ฐ์ดํŠธ๊ฐ€ ์—†์–ด์„œ JCenter์—์„œ๋ฐ–์— ๋‚ด๋ ค๋ฐ›์„ ์ˆ˜ ์—†๋‹ค.

์ด ๊ฒฝ์šฐ ์•„๋ž˜์™€ ๊ฐ™์ด ๋‘˜๋‹ค ์„ ์–ธํ•ด์ฃผ๋ฉด ๋นŒ๋“œ ์—๋Ÿฌ๋Š” ํ•ด๊ฒฐ๋œ๋‹ค.

buildscript {  
    repositories {  
        google()  
        jcenter() // for videocache
        mavenCentral()
    }
    ...

๋˜๋Š” ๋ฒ„์ „์„ ์˜ฌ๋ฆฌ์ง€ ์•Š๊ณ  jcenter()๋งŒ ์„ ์–ธํ•˜๊ณ  JCenter์— ์˜ฌ๋ผ์˜จ ๊ฐ€์žฅ ์ตœ์‹  ๋ฒ„์ „์„ ์‚ฌ์šฉํ•  ์ˆ˜๋„ ์žˆ๋‹ค.
https://github.com/google/ExoPlayer/blob/release-v2/RELEASENOTES.md
exoplayer์˜ ๊ฒฝ์šฐ 2.16.0 (2021-11-04) ๊นŒ์ง€ JCenter๋ฅผ ํ†ตํ•ด ๋ฐฐํฌ๋˜์—ˆ๋‹ค.

ํ•˜์ง€๋งŒ android 33๊นŒ์ง€ ๊ฐ€๋ฉด์„œ ๊ธฐ๊ธฐ ๊ถŒํ•œ ๋“ฑ ๋งŽ์€ ๊ฒƒ๋“ค์ด ๋ณ€ํ•˜๊ณ  ์žˆ๊ธฐ ๋•Œ๋ฌธ์—, target ๋ฒ„์ „์„ ์˜ฌ๋ฆฐ๋‹ค๋ฉด ๋”์ด์ƒ ์—…๋ฐ์ดํŠธ ๋˜์ง€ ์•Š๋Š” videocache๊ฐ™์€ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋Š” ๊ฑท์–ด๋‚ด์•ผ ํ•  ๊ฒƒ์ด๋‹ค.