[Error]

A problem occurred evaluating root project '프로젝트이름'.
> Build was configured to prefer settings repositories over project repositories but repository 'maven' was added by build file 'build.gradle'
[해결방법]
에러는 아래 사진에서 maven 추가 부분에서 발생했다.
아마 안드로이드 스튜디오 버전 때문에 발생한 오류인 것 같다.

위 maven{ ... } 을 setting.gradle 파일에 옮겨주면 간단하게 해결이 된다.
아래 사진처럼 setting.gradle 파일에 repositories 안에 넣어주면 된다.

'개발 이야기' 카테고리의 다른 글
| [안드로이드 Error] Duplicate class androidx.lifecycle.ViewModelLazy found in modules..... (0) | 2023.01.09 | 
|---|---|
| 자바 삭제 오류 Error 1723. There is a problem with this Windows Installer package. (0) | 2023.01.05 | 
| 우분투 18.04 포트 확인하는 방법 (0) | 2022.12.20 | 
| 윈도우에서 Express 시작하기(node.js) (0) | 2022.12.16 | 
| The minCompileSdk (33) specified in adependency's AAR metadata... (0) | 2022.12.15 | 
 
									
								 
									
								 
									
								