https://developers.kakao.com/docs/latest/ko/getting-started/sdk-android
위 문서를 보고 차근차근 따라가려고 했습니다.
카카오 로그인을 구현하기 위해 app/build.gradle 의 dependencies 안에
implementation "com.kakao.sdk:v2-user:2.0.6"
를 추가하면 다음과 같은 에러가 납니다.
[com.kakao.sdk:v2-common:2.0.6] /Users/nahyeonkim/.gradle/caches/transforms-2/files-2.1/9f7a11569c274b97e465dc4ce50194ed/v2-common-2.0.6/AndroidManifest.xml:12:9-50 Error:
Missing 'package' key attribute on element package at [com.kakao.sdk:v2-common:2.0.6] AndroidManifest.xml:12:9-50
[com.kakao.sdk:v2-common:2.0.6] /Users/nahyeonkim/.gradle/caches/transforms-2/files-2.1/9f7a11569c274b97e465dc4ce50194ed/v2-common-2.0.6/AndroidManifest.xml:13:9-53 Error:
Missing 'package' key attribute on element package at [com.kakao.sdk:v2-common:2.0.6] AndroidManifest.xml:13:9-53
[com.kakao.sdk:v2-common:2.0.6] /Users/nahyeonkim/.gradle/caches/transforms-2/files-2.1/9f7a11569c274b97e465dc4ce50194ed/v2-common-2.0.6/AndroidManifest.xml:14:9-54 Error:
Missing 'package' key attribute on element package at [com.kakao.sdk:v2-common:2.0.6] AndroidManifest.xml:14:9-54
[com.kakao.sdk:v2-common:2.0.6] /Users/nahyeonkim/.gradle/caches/transforms-2/files-2.1/9f7a11569c274b97e465dc4ce50194ed/v2-common-2.0.6/AndroidManifest.xml:15:9-51 Error:
Missing 'package' key attribute on element package at [com.kakao.sdk:v2-common:2.0.6] AndroidManifest.xml:15:9-51
[com.kakao.sdk:v2-common:2.0.6] /Users/nahyeonkim/.gradle/caches/transforms-2/files-2.1/9f7a11569c274b97e465dc4ce50194ed/v2-common-2.0.6/AndroidManifest.xml:16:9-50 Error:
Missing 'package' key attribute on element package at [com.kakao.sdk:v2-common:2.0.6] AndroidManifest.xml:16:9-50
[com.kakao.sdk:v2-common:2.0.6] /Users/nahyeonkim/.gradle/caches/transforms-2/files-2.1/9f7a11569c274b97e465dc4ce50194ed/v2-common-2.0.6/AndroidManifest.xml Error:
Validation failed, exiting
See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed with multiple errors, see logs
제가 시도해본 방법들은 다음과 같습니다.
1.
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="30" />
...
defaultConfig {
minSdkVersion 21
targetSdkVersion 30
}
추가하기
SDK(2.0.6)파일을 kakao development 사이트에서 받아 안드로이드 스튜디오 import module하기 (Version 이 정의되지 않았다는 에러가 발생합니다)
android:allowBackup="true" => android:allowBackup="false"
로 바꾸고
tools:replace = android:allowBackup
추가하기
-
com.kakao.sdk:v2-common:2.0.6 에서 common은 왜 나오는 것입니까
-
제가 무엇을 잘못 한 건가요?