com.kakao.sdk:v2-user:2.13.0 를 사용하고 있습니다.
카카오 로그인 구현하기 앞서 설치유무를 판단하기 위해
UserApiClient.instance.isKakaoTalkLoginAvailable(context) 를 호출하면 난독화 적용시에만
FATAL EXCEPTION: main
java.lang.ClassCastException
at android.support.v4.media.c.A(Unknown Source:2)
at com.kakao.sdk.user.c.(SourceFile:22)
at com.kakao.sdk.user.UserApiClient$Companion$instance$2.invoke(SourceFile:1)
at com.kakao.sdk.user.UserApiClient$Companion$instance$2.invoke(SourceFile:2)
at kotlin.SynchronizedLazyImpl.getValue(Unknown Source:20)
at app.com.android.ver0.util.KakaoAuthUtil.signIn(SourceFile:15)
at com.google.android.material.textfield.b.onClick(SourceFile:86)
at android.view.View.performClick(View.java:7506)
at android.view.View.performClickInternal(View.java:7483)
at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0)
at android.view.View$PerformClick.run(View.java:29334)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7872)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
에러가 발생하고 있습니다.
가이드에서 명시한대로 proguard-rules.pro 에
-keep class com.kakao.sdk.**.model.* { ; }
-keep class * extends com.google.gson.TypeAdapter
을 선언하여 제외 처리를 하였는데도 발생하여 문의드립니다.
관련하여 해결방안 공유 부탁드려요 ㅠㅠ