728x90
상황
aar 형태의 라이브러리를 등록하는 중 발생했습니다
코드
android{
...
repository{
flatDir{
dirs 'libs'
}
}
}
dependencies {
...
implementation(name: '***_sdk', ext:'arr')
}
해결 방법
/*
android{
...
repository{
flatDir{
dirs 'libs'
}
}
}
*/
dependency{
...
implementation files("libs/***_sdk.aar")
}
repository 코드를 전부 삭제하고
implementation이 해당 유형의 파일을 찾는 것이 아닌 상대경로로 직접 연결했습니다.
변경 -> 성공
참고
Build was configured to prefer settings repositories over project repositories but repository 'flatDir' was added by build file
상황 aar을 import하기 위해 작업도중 발생 원인 모르겠음. api 30과 31의 차이라기도 뭐한게.. taget api 30인 project가 설정한 대로 똑같이 해도 설정되지 않음. 시도한 방법 //app 또는 project gradle에 아래
greensky0026.tistory.com
728x90