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๊ฐ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ ๊ฑท์ด๋ด์ผ ํ ๊ฒ์ด๋ค.