문의 시, 사용하시는 SDK 버전 정보와 디벨로퍼스 앱ID를 알려주세요.
SDK :
com.kakao.sdk:v2-all:2.15.0
com.kakao.sdk:v2-user:2.15.0
com.kakao.sdk:v2-talk:2.15.0
안드로이드 네이티브에서 카카오로그인 구현시
if (UserApiClient.getInstance().isKakaoTalkLoginAvailable(this))
{
UserApiClient.getInstance().loginWithKakaoTalk(LoginActivity.this, callback);
}
else
{
// 카카오톡이 설치되어 있지 않은 경우 앱 내장 웹뷰 방식으로 카카오계정 확인 요청
UserApiClient.getInstance().loginWithKakaoAccount(this, (token, loginError) -> {
if (loginError != null) {
// 로그인 실패
} else {
// 로그인 성공
// 사용자 정보 요청
requestMe();
}
return null;
});
}
}
여기서
UserApiClient.getInstance().loginWithKakaoTalk
실행 한 후 동의화면 까지 잘 나오는데 동의 누르면 프로그램 종료됩니다.
로그를 확인한 결과 아래와 같이 나오는데 이유를 알 수 가 없습니다.
구현이 안되서 아직 배포를 못하고 있습니다.
도와주세요
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 $Proxy0.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$loginWithKakaoTalk$1.invoke(SourceFile:83)
at com.kakao.sdk.user.UserApiClient$loginWithKakaoTalk$1.invoke(SourceFile:70)
at com.kakao.sdk.auth.AuthCodeClient$resultReceiver$1.receiveOk(SourceFile:184)
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:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7073)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)
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 $Proxy0.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$loginWithKakaoTalk$1.invoke(SourceFile:83)
at com.kakao.sdk.user.UserApiClient$loginWithKakaoTalk$1.invoke(SourceFile:70)
at com.kakao.sdk.auth.AuthCodeClient$resultReceiver$1.receiveOk(SourceFile:184)
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:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7073)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)