안드로이드 sdk 최신 버전 기준(build.gradle project에서 all project 삭제됨)
- settings 설정
dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() mavenCentral() maven { url 'https://devrepo.kakao.com/nexus/content/groups/public/' } jcenter() // Warning: this repository is going to shut down soon } } rootProject.name = "My Application" include ':app'
- build gradle app 설정
dependencies { implementation "com.kakao.sdk:v2-user:2.6.0" implementation 'androidx.core:core-ktx:1.6.0' implementation 'androidx.appcompat:appcompat:1.3.1' implementation 'com.google.android.material:material:1.4.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.0' testImplementation 'junit:junit:4.+' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' }
위 설정으로 sync를 해도
Unable to resolve dependency for ‘:app@debug/compileClasspath’: Could not resolve com.kakao.sdk:v2-user:2.6.0.
Show Details
Affected Modules: app
위와 같은 에러가 발생합니다. 확인 부탁드립니다