-
[AOS] Build was configured to prefer settings repositories over project repositories but repository 'Google' was added by build file 'build.gradle'2022. 11. 8. 14:35๋ฐ์ํ
๐ชฒ
A problem occurred evaluating root project ' '.
> Build was configured to prefer settings repositories over project repositories but repository 'Google' was added by build file 'build.gradle'
๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ถ๊ฐ๋ฅผ ์ํด project ์์ค์ builld.gradle ์์ allprojects { } ์ฝ๋ ์ฌ์ฉ ์ ๋ฐ์ํ๋ค.
ํด๊ฒฐ ๋ฐฉ๋ฒ
Arctic Fox ๋ฒ์ ์ดํ ์์ฑ๋ ํ๋ก์ ํธ๋ build.gralde์ด ์๋ settings.gradle์ ์์ฑํด์ผ ํ๋ค.
๋ฐ๋ผ์ allproject { } ์์ ์์ฑํ ๋ด์ฉ์ settings.gradle ํ์ผ๋ก ์ฎ๊ฒจ ์์ฑํ๋ฉด ๋๋ค.
[ build.gradle (Project) ]
allprojects { repositories { google() maven { url ' ' } } }
๐๐ป
[ settings.gradle ]
dependencyResolutionManagement { ... repositories { google() maven { url ' ' } } }
๋ฐ์ํ'๐ฐ Android ๐ญ > ๐ชฒ ๋๋ฒ๊น ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ