//카카오 로그인
implementation “com.kakao.sdk:v2-user:2.12.0” // 카카오 로그인
implementation “com.kakao.sdk:v2-link:2.8.3” // 메시지(카카오링크)
targetSdk 32
프로가드 추가
-keep class com.kakao.sdk.**.model.* { ; }
-keep class * extends com.google.gson.TypeAdapter
minifyEnabled true 설정시 아래와 같은 에러 발생
java.lang.IllegalArgumentException: Unable to create call adapter for interface retrofit2.Call
for method AuthApi.issueAccessToken
at retrofit2.Utils.methodError(SourceFile:54)
at retrofit2.HttpServiceMethod.createCallAdapter(SourceFile:116)
at retrofit2.HttpServiceMethod.parseAnnotations(SourceFile:67)
at retrofit2.ServiceMethod.parseAnnotations(SourceFile:39)
at retrofit2.Retrofit.loadServiceMethod(SourceFile:202)
at retrofit2.Retrofit$1.invoke(SourceFile:160)
at java.lang.reflect.Proxy.invoke(Proxy.java:1006)
at $Proxy3.issueAccessToken(Unknown Source)
at com.kakao.sdk.auth.AuthApi$DefaultImpls.issueAccessToken$default(SourceFile:31)
at com.kakao.sdk.auth.AuthApiManager.issueAccessToken$auth_release(SourceFile:59)
at com.kakao.sdk.auth.AuthApiClient.issueAccessToken(SourceFile:45)
at com.kakao.sdk.user.UserApiClient$loginWithKakaoAccount$1.invoke(SourceFile:165)
at com.kakao.sdk.user.UserApiClient$loginWithKakaoAccount$1.invoke(SourceFile:161)
at com.kakao.sdk.auth.AuthCodeClient$resultReceiver$1.receiveOk(SourceFile:180)
at com.kakao.sdk.common.util.KakaoResultReceiver.onReceiveResult(SourceFile:32)
at android.os.ResultReceiver$MyRunnable.run(ResultReceiver.java:50)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8663)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
Caused by: java.lang.IllegalArgumentException: Call return type must be parameterized as Call or Call<? extends Foo>
at retrofit2.DefaultCallAdapterFactory.get(SourceFile:42)
at retrofit2.Retrofit.nextCallAdapter(SourceFile:253)
at retrofit2.Retrofit.callAdapter(SourceFile:237)
at retrofit2.HttpServiceMethod.createCallAdapter(SourceFile:114)
at retrofit2.HttpServiceMethod.parseAnnotations(SourceFile:67)
at retrofit2.ServiceMethod.parseAnnotations(SourceFile:39)
at retrofit2.Retrofit.loadServiceMethod(SourceFile:202)
at retrofit2.Retrofit$1.invoke(SourceFile:160)
at java.lang.reflect.Proxy.invoke(Proxy.java:1006)
at $Proxy3.issueAccessToken(Unknown Source)
at com.kakao.sdk.auth.AuthApi$DefaultImpls.issueAccessToken$default(SourceFile:31)
at com.kakao.sdk.auth.AuthApiManager.issueAccessToken$auth_release(SourceFile:59)
at com.kakao.sdk.auth.AuthApiClient.issueAccessToken(SourceFile:45)
at com.kakao.sdk.user.UserApiClient$loginWithKakaoAccount$1.invoke(SourceFile:165)
at com.kakao.sdk.user.UserApiClient$loginWithKakaoAccount$1.invoke(SourceFile:161)
at com.kakao.sdk.auth.AuthCodeClient$resultReceiver$1.receiveOk(SourceFile:180)
at com.kakao.sdk.common.util.KakaoResultReceiver.onReceiveResult(SourceFile:32)
at android.os.ResultReceiver$MyRunnable.run(ResultReceiver.java:50)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8663)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
릴리즈던 디버그던 모두 발생하나
minifyEnabled false 시 릴리즈/ 디버그 모두 로그인 정상동작
해당 부분 확인 부탁 드립니다.