반응형
안드로이드 라이브러리 추가중에 다음과 같은 에러 메시지를 만났습니다.
빌드시에는 나타나지 않지만, 디바이스에서 실행을 하려면 에러메시지에 아래와 같이 발생하면서 실행되지 않습니다.
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
이곳저곳 찾아본결과 다음과 같이 수정하면 정상적으로 실행됨을 확인했습니다.
1. settings.gradle (Project Settings)로 이동
2. dependencyResolutionManagement의 repositories에 아래와 같이 추가.
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
jcenter()
maven { url='https://jitpack.io'}
}
}
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
jcenter() // 새로 추가
maven { url='https://jitpack.io'} // 새로 추가
}
}
rootProject.name = "Test"
include ':app'
Android Studio 버전정보
- Android Studio Chipmunk | 2021.2.1
- built on April 29, 2022
참고한 사이트
반응형
'Development > Android' 카테고리의 다른 글
| Class Model does not define a no-argument constructor. If you are using ProGuard, make sure these constructors are not stripped. (0) | 2023.06.29 |
|---|---|
| Kotlin코드를 Java코드로 변경하기 (Android Studio) (0) | 2023.03.06 |
| Android Studio dolphin에서 파이어베이스 추가하기. (0) | 2022.09.25 |
| Android ListView ViewHolder Pattern + DataBinding 적용하기 (0) | 2022.03.14 |
| Android Application 클래스가 호출되지 않는 경우 (0) | 2022.02.03 |