Android/Apk build
[android] Could not find runtime.aar (android.arch.lifecycle:runtime:1.0.3)
개미맨
2018. 7. 22. 12:06
기존의 잘 빌드되는 코드에서 다음과 같은 에러가 발생하였다.
Could not find runtime.aar (android.arch.lifecycle:runtime:1.0.3).
Searched in the following locations:
https://jcenter.bintray.com/android/arch/lifecycle/runtime/1.0.3/runtime-1.0.3.aar
특히 맥북에서만 발생하여 구글링을 하여보았다.
원인 : google() 저장소를 찾지 못하여 발생.
해결방법 : google() 저장소를 추가해주거나 코드 위치를 아래와 같이 repositiories에서 가장 위로 배치 시켜준다.
유의사항 : google() 저장소는 gradle plugin 3.1.3이상에서 지원.
repositories {
google()
jcenter()
}