final KakaoLoginResult result = await _kakaoSignIn.logIn();
카카오톡이 설치되어있고 로그인되어 있으면 이 코드가 제대로 실행되지만
아니라면
AUTHORIZATION_FAILED: Failed to get Authorization Code.
이 에러가 발생합니다.
Android studio의 Logcat에서는 아래의 오류가 발생합니다.
2020-02-07 16:35:19.106 22340-22340/? E/kakao init error: error
com.kakao.auth.KakaoSDK$AlreadyInitializedException
at com.kakao.auth.KakaoSDK.init(KakaoSDK.java:44)
at com.josephnk.flutterkakaologin.FlutterKakaoLoginHandler.(FlutterKakaoLoginHandler.java:65)
at com.josephnk.flutterkakaologin.FlutterKakaoLoginPlugin.onAttachedToActivity(FlutterKakaoLoginPlugin.java:101)
at com.josephnk.flutterkakaologin.FlutterKakaoLoginPlugin.onAttachedToActivity(FlutterKakaoLoginPlugin.java:91)
at io.flutter.embedding.engine.FlutterEnginePluginRegistry.add(FlutterEnginePluginRegistry.java:135)
at io.flutter.plugins.GeneratedPluginRegistrant.registerWith(GeneratedPluginRegistrant.java:21)
at com.harftware.parasite.MainActivity.configureFlutterEngine(MainActivity.kt:21)
at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onAttach(FlutterActivityAndFragmentDelegate.java:185)
at io.flutter.embedding.android.FlutterActivity.onCreate(FlutterActivity.java:418)
at android.app.Activity.performCreate(Activity.java:7183)
... 생략
flutter_kakao_login 0.7.0버전입니다(0.6.0도 마찬가지입니다).
아래는 저의 개발환경입니다.
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.12.13+hotfix.7, on Mac OS X 10.15.2 19C57, locale ko-KR)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.3)
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.42.0)
[✓] Connected device (1 available)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
안드로이드쪽에서 발생하는 문제입니다.
final KakaoLoginResult result = await _kakaoSignIn.logIn(); 카카오톡이 설치되어있고 로그인되어 있으면 이 코드가 제대로 실행되지만 아니라면 AUTHORIZATION_FAILED: Failed to get Authorization Code. 이 에러가 발생합니다.
Android studio의 Logcat에서는 아래의 오류가 발생합니다. 2020-02-07 16:35:19.106 22340-22340/? E/kakao init error: error com.kakao.auth.KakaoSDK$AlreadyInitializedException at com.kakao.auth.KakaoSDK.init(KakaoSDK.java:44) at com.josephnk.flutterkakaologin.FlutterKakaoLoginHandler.(FlutterKakaoLoginHandler.java:65)
at com.josephnk.flutterkakaologin.FlutterKakaoLoginPlugin.onAttachedToActivity(FlutterKakaoLoginPlugin.java:101)
at com.josephnk.flutterkakaologin.FlutterKakaoLoginPlugin.onAttachedToActivity(FlutterKakaoLoginPlugin.java:91)
at io.flutter.embedding.engine.FlutterEnginePluginRegistry.add(FlutterEnginePluginRegistry.java:135)
at io.flutter.plugins.GeneratedPluginRegistrant.registerWith(GeneratedPluginRegistrant.java:21)
at com.harftware.parasite.MainActivity.configureFlutterEngine(MainActivity.kt:21)
at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onAttach(FlutterActivityAndFragmentDelegate.java:185)
at io.flutter.embedding.android.FlutterActivity.onCreate(FlutterActivity.java:418)
at android.app.Activity.performCreate(Activity.java:7183)
... 생략
flutter_kakao_login 0.7.0버전입니다(0.6.0도 마찬가지입니다).
아래는 저의 개발환경입니다. Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, v1.12.13+hotfix.7, on Mac OS X 10.15.2 19C57, locale ko-KR) [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2) [✓] Xcode - develop for iOS and macOS (Xcode 11.3) [✓] Android Studio (version 3.5) [✓] VS Code (version 1.42.0) [✓] Connected device (1 available)
늘 좋은기능 제공에 감사하고있습니다.