강아지를 좋아하는 컴공생

[Android-Error] Build was configured to prefer settings repositories over project repositories but repository 'Google' was added by build file 'build.gradle' 본문

카테고리 없음

[Android-Error] Build was configured to prefer settings repositories over project repositories but repository 'Google' was added by build file 'build.gradle'

정인하이 2022. 11. 5. 01:54

Android에서 생긴 Error

 

문제 (에러 메세지)

Build was configured to prefer settings repositories over project repositories but repository 'Google' was added by build file 'build.gradle'

 

project repositories 보다 settings repositories 에 넣는걸 추천한다고 한다.

이대로 따라해봐주지!

 

 

 

 

해결방법

저 google()과 mavenCentral()을 settings.gradle으로 옮기면 됨

(이동 위치는 아래 링크 참고)

 

 

 

https://angelplayer.tistory.com/263

 

[안드로이드 에러] 라이브러리 추가 시 에러 (Build was configured to prefer settings repositories..) 해결

에러 A problem occurred evaluating project ':app'. > Build was configured to prefer settings repositories over project repositories but repository 'maven' was added by build file 'app\build.gradle' 원인 글을 작성하는 시점의 최신 안드로이

angelplayer.tistory.com