1. 발생한 문제
Please remove usages of `jcenter()` Maven repository from your build scripts and migrate your build to other Maven repositories.
2. 상세
Please remove usages of `jcenter()` Maven repository from your build scripts and migrate your build to other Maven repositories. This repository is deprecated and it will be shut down in the future. See http://developer.android.com/r/tools/jcenter-end-of-service for more information. Currently detected usages in: root project 'ProjectName', project ':app' Remove JCenter from repositories
3. 해결 방법
- 위의 메시지에서 이야기하는 것과 같이 jcenter()가 deprecated 되면서 다른 것으로 대체하면 정상동작 합니다.
- 위 메시지의 URL인 http://developer.android.com/r/tools/jcenter-end-of-service 에 접속하면 아주 친절하게 한국어로 설명해줍니다. 위 경로에서 이야기하는 것과 같이 기존에 사용중인 jcenter() 를 mavenCentral()로 변경하면 오류 메시지 없이 정상적으로 동작하는 것을 확인할 수 있습니다.
4. 예시
buildscript {
repositories {
google()
jcenter() //mavenCentral()로 변경
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.0'
}
}
allprojects {
repositories {
google()
jcenter() //mavenCentral()로 변경
}
}
'Programming > 에러 정리' 카테고리의 다른 글
[Android] IV required when decrypting. (0) | 2022.11.03 |
---|---|
[Java] Cipher.doFinal(Byte) Error 해결 (0) | 2022.10.27 |
[Java] Illegal embedded minus sign 에러 해결 (0) | 2022.10.26 |