React Native: 카카오톡 로그인 api error

Maliethy·2021년 2월 22일
0

React-Native Error

목록 보기
3/15

1. issue

rn에서 카카오톡 로그인 api 구현 중 다음 에러가 발생했다.

> Task :app:processDebugManifest FAILED

See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.


Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.2/userguide/command_line_interface.html#sec:command_line_warnings
142 actionable tasks: 24 executed, 118 up-to-date
[com.kakao.sdk:v2-common:2.3.0] C:\Users\user\.gradle\caches\transforms-2\files-2.1\d478e2f6f31cfb0a3fd6151c92e890ef\v2-common-2.3.0\AndroidManifest.xml:12:9-50 Error:
        Missing 'package' key attribute on element package at [com.kakao.sdk:v2-common:2.3.0] AndroidManifest.xml:12:9-50
[com.kakao.sdk:v2-common:2.3.0] C:\Users\user\.gradle\caches\transforms-2\files-2.1\d478e2f6f31cfb0a3fd6151c92e890ef\v2-common-2.3.0\AndroidManifest.xml:13:9-53 Error:
        Missing 'package' key attribute on element package at [com.kakao.sdk:v2-common:2.3.0] AndroidManifest.xml:13:9-53
[com.kakao.sdk:v2-common:2.3.0] C:\Users\user\.gradle\caches\transforms-2\files-2.1\d478e2f6f31cfb0a3fd6151c92e890ef\v2-common-2.3.0\AndroidManifest.xml:14:9-54 Error:
        Missing 'package' key attribute on element package at [com.kakao.sdk:v2-common:2.3.0] AndroidManifest.xml:14:9-54
[com.kakao.sdk:v2-common:2.3.0] C:\Users\user\.gradle\caches\transforms-2\files-2.1\d478e2f6f31cfb0a3fd6151c92e890ef\v2-common-2.3.0\AndroidManifest.xml:15:9-51 Error:
        Missing 'package' key attribute on element package at [com.kakao.sdk:v2-common:2.3.0] AndroidManifest.xml:15:9-51
[com.kakao.sdk:v2-common:2.3.0] C:\Users\user\.gradle\caches\transforms-2\files-2.1\d478e2f6f31cfb0a3fd6151c92e890ef\v2-common-2.3.0\AndroidManifest.xml:16:9-50 Error:
        Missing 'package' key attribute on element package at [com.kakao.sdk:v2-common:2.3.0] AndroidManifest.xml:16:9-50
[com.kakao.sdk:v2-common:2.3.0] C:\Users\user\.gradle\caches\transforms-2\files-2.1\d478e2f6f31cfb0a3fd6151c92e890ef\v2-common-2.3.0\AndroidManifest.xml Error:
        Validation failed, exiting

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed with multiple errors, see logs

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 13s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
[com.kakao.sdk:v2-common:2.3.0] C:\Users\user\.gradle\caches\transforms-2\files-2.1\d478e2f6f31cfb0a3fd6151c92e890ef\v2-common-2.3.0\AndroidManifest.xml:12:9-50 Error:

2. solution

이 에러는 카카오에서 v1 '사용자 정보 요청'API가 종료되었기 때문에 발생한다고 한다.
[Android/안드로이드] 카카오톡 로그인 (v2 ‘사용자 정보 요청’ API로 업데이트)에 나온 방법을 따라 api를 업데이트하면 오류가 해결된다.

android>gradle.properties

KAKAO_SDK_GROUP=com.kakao.sdk
KAKAO_SDK_VERSION=1.27.0

android>app>build.gradle

dependencies {
...
implementation group: project.KAKAO_SDK_GROUP, name: 'usermgmt', version: project.KAKAO_SDK_VERSION}

profile
바꿀 수 있는 것에 주목하자

0개의 댓글