Closed DukeJeon closed 1 year ago
meta-data 위치를 잘못넣어서 못찾았네요 ㅠㅠ
저도 같은 오류인데, application 단에 metadata 잘 집어넣었는데도 저러네요..;; 혹시나해서 액티비티쪽에도 넣어보고 했는데 여전함;;
SDK에서 인증할때 Activity 런처가 할당이 안됐네요 -_-;
최종적으로.. FlutterActivity => FlutterFragmentActivity 로 바꿔주니 되네요... 아-_-; 개삽질
최종적으로.. FlutterActivity => FlutterFragmentActivity 로 바꿔주니 되네요... 아-_-; 개삽질
덕분에 삽질을 피할 수 있었습니다. 감사드립니다.
FlutterActivity를 사용중이신 분들은 ReadMe의 FlutterFragmentActivity 로 변환하라는 문구 꼭 확인하세요.
class MainActivity: FlutterFragmentActivity()를 사용중인데
PlatformException(error, lateinit property applicationContext has not been initialized, null, kotlin.UninitializedPropertyAccessException: lateinit property applicationContext has not been initialized
해당 오류가 발생했습니다.
아래는 오류 전체 내용입니다.
I/flutter (12851): │ PlatformException(error, lateinit property applicationContext has not been initialized, null, kotlin.UninitializedPropertyAccessException: lateinit property applicationContext has not been initialized I/flutter (12851): │ at com.navercorp.nid.NaverIdLoginSDK.getApplicationContext(NaverIdLoginSDK.kt:41) I/flutter (12851): │ at com.navercorp.nid.oauth.EncryptedPreferences.getCtx(EncryptedPreferences.kt:20) I/flutter (12851): │ at com.navercorp.nid.oauth.EncryptedPreferences.init(EncryptedPreferences.kt:35) I/flutter (12851): │ at com.navercorp.nid.oauth.EncryptedPreferences.access$init(EncryptedPreferences.kt:17) I/flutter (12851): │ at com.navercorp.nid.oauth.EncryptedPreferences$encryptedPreferences$2.invoke(EncryptedPreferences.kt:30) I/flutter (12851): │ at com.navercorp.nid.oauth.EncryptedPreferences$encryptedPreferences$2.invoke(EncryptedPreferences.kt:29) I/flutter (12851): │ at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74) I/flutter (12851): │ at com.navercorp.nid.oauth.EncryptedPreferences.getEncryptedPreferences(EncryptedPreferences.kt:29) I/flutter (12851): │ at com.navercorp.nid.oauth.EncryptedPreferences.get(EncryptedPreferences.kt:86) I/flutter (12851): │ at com.navercorp.nid.oauth.NidOAuthPreferencesManager.getClientId(NidOAuthPreferencesManager.kt:53) I/flutter (12851): │ at com.navercorp.nid.NaverIdLoginSDK.getState(NaverIdLoginSDK.kt:181) I/flutter (12851): │ at com.navercorp.nid.NaverIdLoginSDK.authenticate(NaverIdLoginSDK.kt:95) I/flutter (12851): │ at com.yoonjaepark.flutter_naver_login.FlutterNaverLoginPlugin.login(FlutterNaverLoginPlugin.kt:212) I/flutter (12851): │ at com.yoonjaepark.flutter_naver_login.FlutterNaverLoginPlugin.onMethodCall(FlutterNaverLoginPlugin.kt:151) I/flutter (12851): │ at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:262) I/flutter (12851): │ at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295) I/flutter (12851): │ at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$DartMessenger(DartMessenger.java:319) I/flutter (12851): │ at io.flutter.embedding.engine.dart.-$$Lambda$DartMessenger$TsixYUB5E6FpKhMtCSQVHKE89gQ.run(Unknown Source:12) I/flutter (12851): │ at android.os.Handler.handleCallback(Handler.java:938) I/flutter (12851): │ at android.os.Handler.dispatchMessage(Handler.java:99) I/flutter (12851): │ at android.os.Looper.loopOnce(Looper.java:226) I/flutter (12851): │ at android.os.Looper.loop(Looper.java:313) I/flutter (12851): │ at android.app.ActivityThread.main(ActivityThread.java:8751) I/flutter (12851): │ at java.lang.reflect.Method.invoke(Native Method) I/flutter (12851): │ at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571) I/flutter (12851): │ at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135) I/flutter (12851): │ )
아래는 doctor -v 내용입니다.