Today Yewon Learned

[Android Studio] The RepositoryHandler.jcenter() method 오류 해결 본문

Android Sudio

[Android Studio] The RepositoryHandler.jcenter() method 오류 해결

데브워니 2022. 6. 15. 13:51

Android Studio App 실행 시 아래와 같은 오류 메세지가 뜨며 오류가 발생하였다.

 

The RepositoryHandler.jcenter() method has been deprecated. 
This is scheduled to be removed in Gradle 8.0. JFrog announced JCenter's shutdown in February 2021.
Use mavenCentral() instead. 
Consult the upgrading guide for further information: https://docs.gradle.org/7.0.2/userguide/upgrading_version_6.html#jcenter_deprecation

 

→ The RepositoryHandler.jcenter() 메소드는 더 이상 사용하지 않는다는 의미.

 

 

[해결 방법]

settings.gradle

repositories 안에 jcenter() 메소드를 삭제하고 실행하면, 오류가 해결된다.

Comments