CODEDRAGON ㆍDevelopment/Android
에러 메시지
ERROR: Failed to resolve: com.android.support:appcompat-v7:28.0.0
해결방법
build.gradle(Project: projectname)
build.gradle(Project: projectname) 에서 allprojects {}안에 google()로 google repository를 추가해 줍니다.
allprojects { repositories { jcenter() google() } } |
build.gradle(Module: app)
build.gradle(Module: app)에서 google repository를 등록하면 빌드 실행이 정상적으로 수행됩니다.
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:appcompat-v7:28.0.+'
implementation 'com.android.support:appcompat-v7:28.+'
dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) implementation 'com.android.support:appcompat-v7:28.0.0' testImplementation 'junit:junit:4.12' } |